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.

A212706 a(n) is the difference between numbers of nonnegative multiples of 2*n+1 with even and odd digit sum in base 2*n in interval [0, (2*n)^9).

Original entry on oeis.org

81, 5825, 73745, 461313, 1951057, 6418369, 17712657, 42921473, 94087249, 190446273, 361259537, 649305089, 1115101521, 1841932225, 2941740049, 4561961985, 6893373521, 10179012289, 14724250641, 20908086785, 29195724113, 40152508353, 54459292177, 72929296897
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    [1+n/315*(4352*n^6+15232*n^5+12992*n^4-5600*n^3- 5152*n^2+5488*n-2112): n in [1..25]]; // Vincenzo Librandi, Dec 02 2015
  • Mathematica
    Table[1 + n/315 (4352 n^6 + 15232 n^5 + 12992 n^4 - 5600 n^3 - 5152 n^2 + 5488 n - 2112), {n, 30}] (* Vincenzo Librandi, Dec 02 2015 *)
    LinearRecurrence[{8,-28,56,-70,56,-28,8,-1},{81,5825,73745,461313,1951057,6418369,17712657,42921473},30] (* Harvey P. Dale, Aug 05 2025 *)
  • PARI
    Vec(x*(81+5177*x+29413*x^2+29917*x^3+4883*x^4+171*x^5-9*x^6-x^7)/(1-x)^8 + O(x^40)) \\ Colin Barker, Dec 01 2015
    

Formula

a(n) = 2/(2*n+1) * Sum_{i=1..n} tan^9(Pi*i/(2*n+1)) * sin(2*Pi*i/(2*n+1)).
a(n) = 1+n/315*(4352*n^6 + 15232*n^5 + 12992*n^4 - 5600*n^3 - 5152*n^2 + 5488*n - 2112).
G.f.: x*(81+5177*x+29413*x^2+29917*x^3+4883*x^4+171*x^5-9*x^6-x^7) / (1-x)^8. - Colin Barker, Dec 01 2015

Extensions

Typo in data fixed by Colin Barker, Dec 01 2015