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!)
A048437 Take the first n numbers written in base 5, concatenate them, then convert from base 5 to base 10. 18

%I #22 Sep 08 2022 08:44:57

%S 1,7,38,194,4855,121381,3034532,75863308,1896582709,47414567735,

%T 1185364193386,29634104834662,740852620866563,18521315521664089,

%U 463032888041602240,11575822201040056016,289395555026001400417

%N Take the first n numbers written in base 5, concatenate them, then convert from base 5 to base 10.

%C The first three primes in this sequence occur for n = 2 (a(2) = 7), n = 113 (a(113) = 7.4484...*10^216), n = 162 (a(162) = 1.5188...*10^346). - Kurt Foster, Oct 24 2015 [Comment added by _N. J. A. Sloane_, Oct 25 2015]

%H Vincenzo Librandi, <a href="/A048437/b048437.txt">Table of n, a(n) for n = 1..200</a>

%e a(7) = 1 2 3 4 10 11 12 = 3034532_10.

%t If[STARTPOINT==1, n={}, n=Flatten[IntegerDigits[Range[STARTPOINT-1], 5]]]; Table[AppendTo[n, IntegerDigits[w, 5]]; n=Flatten[n]; FromDigits[n, 5], {w, STARTPOINT, ENDPOINT}] (* _Dylan Hamilton_, Aug 11 2010 *)

%t f[n_]:= FromDigits[Flatten@IntegerDigits[Range@n, 5], 5]; Array[f, 20] (* _Vincenzo Librandi_, Dec 30 2012 *)

%o (Magma) [n eq 1 select 1 else Self(n-1)*5^(1+Ilog(5, n))+n: n in [1..20]]; // _Vincenzo Librandi_, Dec 30 2012

%Y Cf. A014827.

%Y Concatenation of first n numbers in other bases: 2: A047778, 3: A048435, 4: A048436, 5: this sequence, 6: A048438, 7: A048439, 8: A048440, 9: A048441, 10: A007908, 11: A048442, 12: A048443, 13: A048444, 14: A048445, 15: A048446, 16: A048447.

%K nonn,base,easy

%O 1,2

%A _Patrick De Geest_, May 15 1999

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 14:10 EDT 2024. Contains 371792 sequences. (Running on oeis4.)