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!)
A346425 a(n) is the greatest number k such that k! <= prime(n). 1
2, 2, 2, 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, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Terms 2, 3, 4, 5, ... appear respectively 3, 6, 21, 98, ... times consecutively; indeed, 2 appears A061232(1) + A061232(2) times, then every m >= 3 appears A061232(m) times.
LINKS
FORMULA
a(n)! = A000040(n) - A136437(n).
EXAMPLE
prime(1) = 2 and the greatest k with k! <= 2 is 2, so a(1) = 2.
prime(4) = 7 and the greatest k with k! <= 7 is 3, so a(4) = 3.
prime(10) = 29 and the greatest k with k! <= 29 is 4 so a(10) = 4.
Rows with n, prime(n), greatest k! <=n, a(n) for n = 1..14
n 1 2 3 4 5 6 7 8 9 10 11 12 13 14
prime(n) 2 3 5 7 11 13 17 19 23 29 31 37 41 43
greatest k! 2 2 2 6 6 6 6 6 6 24 24 24 24 24
a(n) 2 2 2 3 3 3 3 3 3 4 4 4 4 4
PROG
(PARI) a(n) = my(k=1); until (k! > prime(n), k++); k-1; \\ Michel Marcus, Jul 19 2021
CROSSREFS
Sequence in context: A262887 A106432 A227923 * A029836 A004257 A360010
KEYWORD
nonn
AUTHOR
Bernard Schott, Jul 16 2021
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 20 03:03 EDT 2024. Contains 371798 sequences. (Running on oeis4.)