|
|
A339686
|
|
a(n) = Sum_{d|n} 6^(d-1).
|
|
10
|
|
|
1, 7, 37, 223, 1297, 7819, 46657, 280159, 1679653, 10078999, 60466177, 362805091, 2176782337, 13060740679, 78364165429, 470185264735, 2821109907457, 16926661132171, 101559956668417, 609359750089711, 3656158440109669, 21936950700844039, 131621703842267137
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: Sum_{k>=1} x^k / (1 - 6*x^k).
G.f.: Sum_{k>=1} 6^(k-1) * x^k / (1 - x^k).
|
|
MATHEMATICA
|
Table[Sum[6^(d - 1), {d, Divisors[n]}], {n, 1, 23}]
nmax = 23; CoefficientList[Series[Sum[x^k/(1 - 6 x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
|
|
PROG
|
(PARI) a(n) = sumdiv(n, d, 6^(d-1)); \\ Michel Marcus, Dec 13 2020
(Magma)
A339686:= func< n | (&+[6^(d-1): d in Divisors(n)]) >;
(SageMath)
def A339686(n): return sum(6^(k-1) for k in (1..n) if (k).divides(n))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|