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!)
A109548 Primes of the form aaaa...aa1 where a is 1, 2, 3, 4 or 5. 1
11, 31, 41, 331, 2221, 3331, 4441, 33331, 333331, 3333331, 33333331, 44444444441, 555555555551, 5555555555551, 222222222222222221, 333333333333333331, 1111111111111111111, 11111111111111111111111 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
d=1, 2, 3, 4, 5 a(n) = if prime then Sum[d*10^i, {i, 1, m}] + 1
MATHEMATICA
d[n_] = Mod[n, 6] a = Flatten[Table[Sum[d[k]*10^i, {i, 1, m}] + 1, {m, 1, 50}, {k, 1, 5}]] b = Flatten[Table[If[PrimeQ[a[[i]]] == True, a[[i]], {}], {i, 1, Length[a]}]]
Select[FromDigits/@Flatten[Table[PadLeft[{1}, i, #]&/@{1, 2, 3, 4, 5}, {i, 2, 80}], 1], PrimeQ[#]&] (* Vincenzo Librandi, Dec 12 2011 *)
CROSSREFS
Sequence in context: A040971 A138656 A144234 * A173767 A347815 A142343
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 19 15:34 EDT 2024. Contains 371794 sequences. (Running on oeis4.)