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!)
A235224 a(0) = 0, and for n > 0, a(n) = largest k such that A002110(k-1) <= n, where A002110(k) gives the k-th primorial number. 18
0, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
For n > 0: a(n) = (length of row n in A235168) = A055642(A049345(n)).
For n > 0, a(n) gives the length of primorial base expansion of n. Also, after zero, each value n occurs A061720(n-1) times. - Antti Karttunen, Oct 19 2019
LINKS
FORMULA
From Antti Karttunen, Oct 19 2019: (Start)
a(n) = A061395(A276086(n)).
For all n >= 0, a(n) >= A267263(n).
For all n >= 1, A000040(a(n)) > A328114(n). (End)
MAPLE
A235224 := proc(n)
local k;
if n = 0 then
0;
else
for k from 0 do
if A002110(k-1) > n then
return k-1 ;
end if;
end do:
end if;
end proc: # R. J. Mathar, Apr 19 2021
MATHEMATICA
primorial[n_] := Times @@ Prime[Range[n]];
a[n_] := TakeWhile[primorial /@ Range[0, n], # <= n &] // Length;
Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Oct 27 2021 *)
PROG
(Haskell)
a235224 n = length $ takeWhile (<= n) a002110_list
(PARI) A235224(n) = { my(s=0, p=2); while(n, s++; n = n\p; p = nextprime(1+p)); (s); }; \\ Antti Karttunen, Oct 19 2019
(PARI) A235224(n, p=2) = if(!n, n, if(n<p, 1, 1+A235224(n\p, nextprime(p+1)))); \\ (Recursive implementation) - Antti Karttunen, Oct 19 2019
CROSSREFS
Sequence in context: A321857 A186313 A165020 * A069624 A092139 A084558
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jan 05 2014
EXTENSIONS
Name corrected to match the data by Antti Karttunen, Oct 19 2019
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 24 06:52 EDT 2024. Contains 371920 sequences. (Running on oeis4.)