OFFSET
1,2
COMMENTS
This sequence appears to be infinite.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
FORMULA
pod(n^3)/pod(n^2)=pod(n^2)/pod(n), where pod(n) = A007954(n).
EXAMPLE
38296 is in the sequence because the pod equals 2592 (=3*8*2*9*6), pod(38296^2) is 622080, pod(38296^3) is 149299200. 2592*240 = 622080 => 622080*240 = 149299200.
MATHEMATICA
pod[n_]:=Times@@IntegerDigits@n; Select[Range[10^8], pod[#^3] pod[#] == pod[#^2]^2 >0 &] (* Vincenzo Librandi, May 16 2015 *)
PROG
(Python)
def pod(n):
....kk = 1
....while n > 0:
........kk= kk*(n%10)
........n =int(n//10)
....return kk
for i in range (1, 10**7):
....if pod(i**3)*pod(i)==pod(i**2)**2 and pod(i**2)!=0:
........print (i, pod(i), pod(i**2), pod(i**3), pod(i**2)//pod(i))
(PARI) pod(n) = my(d = digits(n)); prod(k=1, #d, d[k]);
isok(n) = (pd = pod(n)) && (pdd = pod(n^2)) && (pdd/pd == pod(n^3)/pdd); \\ Michel Marcus, May 30 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Pieter Post, May 15 2015
EXTENSIONS
a(17)-a(29) from Giovanni Resta, May 15 2015
STATUS
approved