cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A359206 a(n) = Sum_{d|n} 4^(n-d).

Original entry on oeis.org

1, 5, 17, 81, 257, 1345, 4097, 20737, 69633, 328705, 1048577, 5574657, 16777217, 83902465, 286261249, 1359020033, 4294967297, 22565617665, 68719476737, 348967141377, 1168499539969, 5497562333185, 17592186044417, 93531519582209, 282574488338433
Offset: 1

Views

Author

Seiichi Manyama, Dec 20 2022

Keywords

Crossrefs

Programs

  • Mathematica
    a[n_] := DivisorSum[n, 4^(n-#) &]; Array[a, 25] (* Amiram Eldar, Aug 23 2023 *)
  • PARI
    a(n) = sumdiv(n, d, 4^(n-d));
    
  • PARI
    my(N=30, x='x+O('x^N)); Vec(sum(k=1, N, 4^(k-1)*x^k/(1-4^(k-1)*x^k)))
    
  • PARI
    my(N=30, x='x+O('x^N)); Vec(sum(k=1, N, x^k/(1-(4*x)^k)))

Formula

G.f.: Sum_{k>=1} 4^(k-1) * x^k/(1 - 4^(k-1) * x^k).
G.f.: Sum_{k>=1} x^k/(1 - (4 * x)^k).