OFFSET
1,2
COMMENTS
I conjecture the sequence has only finitely many members, i.e., for all n, sp(n) < 10^r for a large enough r.
LINKS
Michel Marcus, Table of n, a(n) for n = 1..60
EXAMPLE
For n = 28, sp(28) = 7714, product of decimal digits of sp(28) = 7*7*1*4 = 196 and 196 / 28 = 7 so sp(28) = 7714 is in the sequence.
MATHEMATICA
sp[n_] := n*(n + 1)*(2*n + 1)/6; seq[lim_] := Module[{v = Table[Times @@ IntegerDigits[sp[n]], {n, 1, lim}]/Range[lim], ind}, ind = Position[v, _?(# > 0 && IntegerQ[#] &)] // Flatten; sp[ind]]; seq[15000] (* Amiram Eldar, Jan 11 2025 *)
PROG
(PARI) sp(n) = n*(n+1)*(2*n+1)/6; \\ A000330
lista(nn) = my(list=List()); for (n=1, nn, my(x=sp(n), d=digits(x)); if (vecmin(d) && !(vecprod(d) % n), listput(list, x)); ); Vec(list); \\ Michel Marcus, Jan 11 2025
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Ctibor O. Zizka, Jan 11 2025
EXTENSIONS
More terms from Michel Marcus, Jan 11 2025
STATUS
approved