|
|
A037478
|
|
Number of positive solutions to "numbers that are n times sum of their digits".
|
|
4
|
|
|
9, 1, 1, 4, 1, 1, 4, 1, 1, 9, 1, 1, 3, 1, 1, 3, 1, 1, 11, 1, 1, 3, 1, 1, 3, 2, 2, 12, 1, 1, 3, 1, 1, 4, 1, 2, 15, 2, 1, 4, 1, 1, 3, 1, 1, 13, 2, 2, 3, 1, 1, 4, 1, 1, 13, 1, 1, 2, 1, 1, 3, 0, 0, 7, 0, 1, 4, 1, 1, 4, 1, 1, 8, 1, 0, 3, 1, 1, 4, 1, 1, 10, 1, 0, 3, 1, 1, 3, 1, 1, 9, 1, 1, 3, 0, 1, 3, 1, 1, 9, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
It appears that the largest terms occur when n=1 mod 9 and moderately large terms when n=4 or 7 mod 9.
|
|
LINKS
|
|
|
EXAMPLE
|
a(13)=3 since the only three solutions are 117=9*13, 156=12*13 and 195=15*13.
|
|
MAPLE
|
read("transforms"):
local a, x, k;
a := 0 ;
for k from 1 do
x := n*k ;
if digsum(x)*n = x then
a := a+1 ;
end if;
# may stop if x/digsum(x)>n, so if x/#digits(x) > 9*n
break;
end if;
end do:
a ;
end proc:
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|