login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A373276 a(n) = Sum_{d|n} (-1)^(d-1) * 3^(n/d-1). 1
1, 2, 10, 23, 82, 236, 730, 2156, 6571, 19604, 59050, 176918, 531442, 1593596, 4783060, 14346689, 43046722, 129133838, 387420490, 1162241726, 3486785140, 10460294156, 31381059610, 94143003584, 282429536563, 847288078004, 2541865834900, 7625595889958 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
G.f.: 1/3 * Sum_{k>=1} (3*x)^k / (1 + x^k).
If p is an odd prime, a(p) = 1 + 3^(p-1).
PROG
(PARI) a(n) = sumdiv(n, d, (-1)^(d-1)*3^(n/d-1));
(PARI) my(N=30, x='x+O('x^N)); Vec(sum(k=1, N, (3*x)^k/(1+x^k))/3)
CROSSREFS
Sequence in context: A293403 A316451 A120845 * A330280 A293412 A224837
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, May 29 2024
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 12 23:44 EDT 2024. Contains 375855 sequences. (Running on oeis4.)