login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A109550 Primes of the form aaaa...aa1 where a is 3, 4, 5, 6 or 7. 1
31, 41, 61, 71, 331, 661, 3331, 4441, 6661, 33331, 333331, 3333331, 33333331, 6666666661, 44444444441, 555555555551, 5555555555551, 7777777777771, 333333333333333331, 666666666666666661, 77777777777777777771 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
d=3, 4, 5, 6, 7 a(n) = if prime then Sum[d*10^i, {i, 1, m}] + 1
MATHEMATICA
d[n_] = If[2 + Mod[n, 6] > 0, 2 + Mod[n, 6], 1] a = Flatten[Table[Sum[d[k]*10^i, {i, 1, m}] + 1, {m, 1, 50}, {k, 1, 4}]] b = Flatten[Table[If[PrimeQ[a[[i]]] == True, a[[i]], {}], {i, 1, Length[a]}]]
Select[FromDigits/@Flatten[Table[PadLeft[{1}, i, #]&/@{3, 4, 5, 6, 7}, {i, 2, 100}], 1], PrimeQ[#]&] (* Vincenzo Librandi, Dec 12 2011 *)
CROSSREFS
Sequence in context: A040178 A089719 A340444 * A040991 A089721 A089442
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Jun 26 2005
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)