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

 Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”). Other ways to Give
 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A178388 Concatenation of the first n primes written in base 3. 1
 2, 210, 21012, 2101221, 2101221102, 2101221102111, 2101221102111122, 2101221102111122201, 2101221102111122201212, 21012211021111222012121002, 210122110211112220121210021011, 2101221102111122201212100210111101 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 LINKS Rémy Sigrist, Table of n, a(n) for n = 1..174 EXAMPLE a(4) = Concatenate[prime(1) base 3, prime(2) base 3, prime(3) base 3, prime(3) base 3] = Concatenate[2 base 3, 3 base 3, 5 base 3, 7 base 3] = Concatenate[2, 10, 12, 21] = 2101221. MATHEMATICA Module[{nn=15, p3}, p3=IntegerDigits[Prime[Range[nn]], 3]; Table[FromDigits[Flatten[ Take[p3, n]]], {n, nn}]] (* Harvey P. Dale, Aug 25 2022 *) PROG (PARI) v = 0; for (n=1, 12, d = digits(prime(n), 3); v = v*10^#d + fromdigits(d); print1 (v ", ")) \\ Rémy Sigrist, Aug 07 2017 CROSSREFS Cf. A000040, A001363, A004676, A007088, A007089, A019518, A031974, A100003, A154703. Sequence in context: A157479 A355904 A092700 * A056065 A317978 A050445 Adjacent sequences: A178385 A178386 A178387 * A178389 A178390 A178391 KEYWORD base,easy,nonn AUTHOR Jonathan Vos Post, May 26 2010 EXTENSIONS Edited by N. J. A. Sloane, Jul 02 2017 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.

Last modified December 5 13:14 EST 2023. Contains 367591 sequences. (Running on oeis4.)