OFFSET
2,3
COMMENTS
This sequence is unbounded; a(n!*p^2) > n where n > 1 and p is a prime number > n.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 2..10000
FORMULA
a(n) = 1 iff n is a prime number.
EXAMPLE
For n = 8:
- floor(8/1) = 8 is not a prime number,
- floor(8/2) = 4 is not a prime number,
- floor(8/3) = 2 is a prime number,
- hence a(8) = 3.
MATHEMATICA
Array[Block[{k = 1}, While[! PrimeQ@ Floor[#/k], k++]; k] &, 86, 2] (* Michael De Vlieger, Feb 04 2020 *)
PROG
(PARI) a(n) = for (k=1, oo, if (isprime(n\k), return (k)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Feb 02 2020
STATUS
approved