Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A104290
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A104290 a = a(n) is such that the a-th prime p(a) is the least prime with digital sum equal to n, or a(n)=0 if no such prime exists. +0
1
0, 1, 2, 6, 3, 0, 4, 7, 0, 8, 10, 0, 19, 17, 0, 22, 24, 0, 46, 77, 0, 95, 109, 0, 168, 290, 0, 303, 430, 0, 669, 887, 0, 2064, 1117, 0, 3245, 4203, 0, 5133, 6057, 0, 7837, 9505, 0, 17984, 33067, 0, 49025, 49098, 0, 63951, 77777, 0, 216751, 216816, 0, 348513 (list; graph; listen)
OFFSET

0,3

COMMENT

a(1)=0 because there is no prime with digital sum equal to 1, a(2)=1 because p(1)=2 is the least prime with digital sum equal to 2, a(3)=2 because p(2)=3 the only prime with digital sum equal to 3, a(3k>3)=0 because there is no prime with digital sum equal to 3 (besides p(2)=3), a(53)=77777 because p(77777)=989999 is the least prime with digital sum (9+8+9+9+9+9) equal to 53. For the first 1,000,000 primes, the maximal digital sum is 62 (for p(658445)=9899999).

MATHEMATICA

ta=Table[Plus@@IntegerDigits[Prime[i]], {i, 1000000}]; A104290={0, 1, 2, Table[If[Mod[k, 3]==0, 0, Position[ta, k][[1]]], {k, 4, 54}]}//Flatten

CROSSREFS

Adjacent sequences: A104287 A104288 A104289 this_sequence A104291 A104292 A104293

Sequence in context: A005729 A086660 A102068 this_sequence A136759 A056129 A059433

KEYWORD

nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Feb 28 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 October 13 09:05 EDT 2008. Contains 145008 sequences.


AT&T Labs Research