OFFSET
1,4
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
MATHEMATICA
k = 2; nn = 360; p[_] := 0; r = 0; q = Prime[k];
{0}~Join~Reap[
Do[If[AnyTrue[#, p[#1] < #2 & @@ # &],
Map[p[#1] += #2 & @@ # &, #],
Map[p[#1] -= #2 & @@ # &, #] ] &@
Map[{PrimePi[#1], #2} & @@ # &, FactorInteger[n]];
If[Divisible[n, q], Sow[p[k] ] ], {n, nn}] ][[-1, 1]]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael De Vlieger, Jun 02 2024
STATUS
approved