OFFSET
1,1
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Range[250], (g = FactorInteger[#][[-1, 1]]) < # && Divisible[g^2 + g, #] &] (* Amiram Eldar, Feb 25 2020 *)
PROG
(Magma) [k: k in [4..240] | -Maximum(PrimeDivisors(k))^2 mod k eq Maximum(PrimeDivisors(k))];
(PARI) gpf(n, f=factor(n))=f=f[, 1]; if(#f==0, 1, f[#f]);
is(n)=my(g=gpf(n)); g<n && (g^2+g)%n==0 \\ Charles R Greathouse IV, Mar 26 2020
(PARI) list(lim)=my(v=List()); forfactored(N=6, lim\1, my(n=N[1], f=N[2][, 1], i=#f); if(i>1 && (f[i]^2+f[i])%n==0, listput(v, n))); Vec(v); \\ Charles R Greathouse IV, Mar 27 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Feb 25 2020
STATUS
approved