|
|
A366512
|
|
Numbers k such that the square of the sum of the digits times the sum of the cubes of the digits equals k.
|
|
2
|
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
There are exactly 5 such numbers (Property 14 of Clerc).
|
|
LINKS
|
|
|
EXAMPLE
|
32144 = ((3+2+1+4+4)^2)*(3^3 + 2^3 + 1^3 + 4^3 + 4^3) = 196*164.
|
|
MATHEMATICA
|
Select[Range[10^6], #1 == Total[#2]^2*Total[#2^3] & @@ {#, IntegerDigits[#]} &] (* Michael De Vlieger, Mar 25 2024 *)
|
|
PROG
|
(PARI) niven23()={for(a=0, 9, for(b=0, 9, for(c=0, 9, for(d=0, 9, for(e=0, 9, for(f=0, 9, for(g=0, 9, for(h=0, 9, if((a+b+c+d+e+f+g+h)^2*(a^3+b^3+c^3+d^3+e^3+f^3+g^3+h^3)==10000000*a+1000000*b+100000*c+10000*d+1000*e+100*f+10*g+h, print1(10000000*a+1000000*b+100000*c+10000*d+1000*e+100*f+10*g+h, ", "))))))))))}
(PARI) isok(k) = my(d=digits(k)); vecsum(d)^2*sum(i=1, #d, d[i]^3) == k; \\ Michel Marcus, Oct 12 2023
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,fini,full
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|