Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A090746
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A090746 Consider numbers of the form ...19753197531975319, whose digits read from the right are 9,1,3,5,7,9,1,3,5,7,9,1,... Sequence gives lengths of these numbers which are primes. +0
2
2, 8, 11, 21, 54, 734, 5636 (list; graph; listen)
OFFSET

0,1

EXAMPLE

a(1)=2 because 19 is prime and 19 has 2 digits

a(2)=8 because 31975319 is prime and 31975319 has 8 digits

MATHEMATICA

s = 0; Do[s = s + 10^n*Switch[ Mod[n, 5], 1, 1, 2, 3, 3, 5, 4, 7, 0, 9]; If[ PrimeQ[s], Print[n + 1]], {n, 0, 3000}] (from Robert G. Wilson v Feb 10 2004)

PROGRAM

(PARI) test9(n)= s=0; for(i=0, n, \ if(Mod(i, 5)==0, s=s+9*10^i, \ if(Mod(i, 5)==1, s=s+1*10^i, \ if(Mod(i, 5)==2, s=s+3*10^i, \ if(Mod(i, 5)==3, s=s+5*10^i, \ if(Mod(i, 5)==4, s=s+7*10^i, \ )))))); return(s); for(j=0, 732, if(isprime(test9(j)), print(j+1), print1(".")))

CROSSREFS

Sequence in context: A056550 A074263 A009420 this_sequence A089118 A146480 A093918

Adjacent sequences: A090743 A090744 A090745 this_sequence A090747 A090748 A090749

KEYWORD

hard,nonn,base,more

AUTHOR

mohammed bouayoun (bouyao(AT)wanadoo.fr), Feb 03 2004

EXTENSIONS

734 from Robert G. Wilson v (rgwv(AT)rgwv.com), Feb 10 2004

a(6) from Donovan Johnson (donovan.johnson(AT)yahoo.com), Mar 06 2008

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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research