|
|
A339689
|
|
a(n) = Sum_{d|n} 9^(d-1).
|
|
10
|
|
|
1, 10, 82, 739, 6562, 59140, 531442, 4783708, 43046803, 387427060, 3486784402, 31381119478, 282429536482, 2541866359780, 22876792461604, 205891136878357, 1853020188851842, 16677181742772430, 150094635296999122, 1350851718060419878, 12157665459057460324
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: Sum_{k>=1} x^k / (1 - 9*x^k).
G.f.: Sum_{k>=1} 9^(k-1) * x^k / (1 - x^k).
|
|
MATHEMATICA
|
Table[Sum[9^(d - 1), {d, Divisors[n]}], {n, 1, 21}]
nmax = 21; CoefficientList[Series[Sum[x^k/(1 - 9 x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
|
|
PROG
|
(PARI) a(n) = sumdiv(n, d, 9^(d-1)); \\ Michel Marcus, Dec 13 2020
(Magma)
A339689:= func< n | (&+[9^(d-1): d in Divisors(n)]) >;
(SageMath)
def A339689(n): return sum(9^(k-1) for k in (1..n) if (k).divides(n))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|