OFFSET
1,8
LINKS
Eric Weisstein's World of Mathematics, Greatest Prime Factor
FORMULA
a(n) = |{j < n : gpf(j) = gpf(n)}|.
a(n) = A078899(n) - 1.
MAPLE
R:= NULL:
for n from 1 to 100 do p:= max(numtheory:-factorset(n)); if assigned(C[p]) then C[p]:= C[p]+1 else C[p]:= 0 fi;
R:= R, C[p]
od:R; # Robert Israel, Nov 07 2024
MATHEMATICA
Table[Length[Select[Range[n - 1], FactorInteger[#][[-1, 1]] == FactorInteger[n][[-1, 1]] &]], {n, 90}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Nov 05 2024
STATUS
approved