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!)
A362117 Concatenation of first n numbers in base 5. 3
1, 12, 123, 1234, 123410, 12341011, 1234101112, 123410111213, 12341011121314, 1234101112131420, 123410111213142021, 12341011121314202122, 1234101112131420212223, 123410111213142021222324, 12341011121314202122232430, 1234101112131420212223243031 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
When regarded as decimal numbers, the first prime in this sequence is a(6) = 12341011.
a(8) is also prime and for n <= 2000, a(n) is not prime except for n = 6 or 8. - Chai Wah Wu, Apr 19 2023
LINKS
MATHEMATICA
A362117[n_]:=FromDigits[Flatten[IntegerDigits[Range[n], 5]]]; Array[A362117, 20] (* Paolo Xausa, Nov 27 2023 *)
PROG
(Python)
from gmpy2 import digits
def A362117(n): return int(''.join(digits(n, 5) for n in range(1, n+1))) # Chai Wah Wu, Apr 19 2023
CROSSREFS
Sequence in context: A262575 A187871 A187869 * A262574 A159901 A159900
KEYWORD
nonn,base
AUTHOR
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 September 14 19:05 EDT 2024. Contains 375929 sequences. (Running on oeis4.)