OFFSET
1,2
COMMENTS
LINKS
MAPLE
N:= 10^7: # to get all terms <= N
q:= proc(x, N) local p, R;
R:= {x};
for p in numtheory:-factorset(x) do
R:= map(t -> seq(t*p^i, i=0..floor(log[p](N/t))), R)
od;
R
end proc:
Pow:= `union`(seq(q(n^2, N), n=1..isqrt(N))):
Primes:= select(isprime, [2, seq(i, i=3..N, 2)]):
CPow:= Vector(N): CPow[convert(Pow, list)]:= 1:
CPrimes:= Vector(N): CPrimes[Primes]:= 1:
Conv:= SignalProcessing:-Convolution(CPow, CPrimes):
select(t -> Conv[t-1] < 1.5, [$2..N]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, May 05 2017
STATUS
approved