OFFSET
1,5
COMMENTS
Records occur at positions 1, 2, 5, 11, 23, 47, 2879, ... (A292937).
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
MAPLE
A292936 := proc(n)
for k from 0 do
if not isprime(floor(n/2^k)) then
return k;
end if;
end do:
end proc:
seq(A292936(n), n=1..100) ; # R. J. Mathar, Sep 28 2017
MATHEMATICA
Table[SelectFirst[Range[0, 10], ! PrimeQ@ Floor[n/(2^#)] &], {n, 105}] (* Michael De Vlieger, Sep 29 2017 *)
PROG
CROSSREFS
Cf. A059456 (positions of ones).
KEYWORD
nonn
AUTHOR
Antti Karttunen, Sep 27 2017
STATUS
approved