Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A113580
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A113580 Define prime(0) = 1; then a(n) = sum prime(d), where d ranges over the decimal digits of n. +0
2
1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 3, 4, 5, 7, 9, 13, 15, 19, 21, 25, 4, 5, 6, 8, 10, 14, 16, 20, 22, 26, 6, 7, 8, 10, 12, 16, 18, 22, 24, 28, 8, 9, 10, 12, 14, 18, 20, 24, 26, 30, 12, 13, 14, 16, 18, 22, 24, 28, 30, 34, 14, 15, 16, 18, 20, 24, 26, 30, 32, 36, 18, 19, 20, 22, 24, 28 (list; graph; listen)
OFFSET

0,2

EXAMPLE

a(123) = prime(1) + prime(2) + prime(3) = 2 + 3 + 5 = 10.

a(10001) = 2 + 1 + 1 + 1 + 2 = 7.

MATHEMATICA

f[n_] := Plus @@ (IntegerDigits[n] /. {0 -> 1, 1 -> 2, 2 -> 3, 3 -> 5, 4 -> 7, 5 -> 11, 6 -> 13, 7 -> 17, 8 -> 19, 9 -> 23}); Table[ f[n], {n, 0, 75}] (* Robert G. Wilson v *)

CROSSREFS

Cf. A113581; first occurrence in A113736.

Sequence in context: A113581 A124180 A151796 this_sequence A117322 A048380 A048382

Adjacent sequences: A113577 A113578 A113579 this_sequence A113581 A113582 A113583

KEYWORD

base,nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Nov 06 2005

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(at)rgwv.com), Nov 08 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 20 16:54 EST 2009. Contains 171081 sequences.


AT&T Labs Research