OFFSET
1,2
COMMENTS
The numbers such that all digits are nonzero are rare (see the subsequence A176194).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
1121211 is a term since 1^4 + 1^4 + 2^4 + 1^4 + 2^4 + 1^4 + 1^4 = 37 and 1121211 = 37*30303 ; 1^3 + 1^3 + 2^3 + 1^3 + 2^3 + 1^3 + 1^3 = 21 and 1121211 = 21*53391 ; 1^2 + 1^2 + 2^2 + 1^2 + 2^2 + 1^2 + 1^2 = 13 and 1121211 = 13* 86247 ; 1 + 1 + 2 + 1 + 2 + 1 + 1 = 9 and 1121211 = 9*124579.
MAPLE
isA169662 := proc(n)
dgs := convert(n, base, 10) ;
if (n mod ( add(d, d=dgs) ) = 0) and (n mod (add(d^2, d=dgs) )) =0 and (n mod (add(d^3, d=dgs))) =0 and (n mod (add(d^4, d=dgs))) = 0 then
true;
else
false;
end if;
end proc:
for i from 1 to 110000 do
if isA169662(i) then
printf("%d, ", i) ;
end if;
end do: # R. J. Mathar, Nov 07 2011
MATHEMATICA
q[n_] := And @@ Divisible[n, Plus @@@ Transpose @ Map[#^Range[4] &, IntegerDigits[n]]]; Select[Range[10^5], q] (* Amiram Eldar, Jan 31 2021 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Apr 05 2010
STATUS
approved