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.

A133883 a(n) = binomial(n+3,n) mod 3^2.

Original entry on oeis.org

1, 4, 1, 2, 8, 2, 3, 3, 3, 4, 7, 4, 5, 2, 5, 6, 6, 6, 7, 1, 7, 8, 5, 8, 0, 0, 0, 1, 4, 1, 2, 8, 2, 3, 3, 3, 4, 7, 4, 5, 2, 5, 6, 6, 6, 7, 1, 7, 8, 5, 8, 0, 0, 0, 1, 4, 1, 2, 8, 2, 3, 3, 3, 4, 7, 4, 5, 2, 5, 6, 6, 6, 7, 1, 7, 8, 5, 8, 0, 0, 0, 1, 4, 1, 2, 8, 2, 3, 3, 3, 4, 7, 4, 5, 2, 5, 6, 6, 6, 7, 1, 7, 8, 5, 8
Offset: 0

Views

Author

Hieronymus Fischer, Oct 10 2007

Keywords

Comments

Periodic with length 3^3 = 27.

Crossrefs

For the sequence regarding "Binomial(n+3, n) mod 3" see A133873.

Programs

  • Magma
    [Binomial(n+3,n) mod 9: n in [0..60]]; // Vincenzo Librandi, Jul 20 2016
  • Mathematica
    Table[Mod[Binomial[n + 3, n], 9], {n, 0, 120}] (* or *)
    CoefficientList[Series[(1 + 3 x - 3 x^2 + 2 x^3 + 9 x^4 - 9 x^5 + 3 x^6 + 9 x^7 - 9 x^8 + 4 x^9 + 12 x^10 - 12 x^11 + 5 x^12 + 9 x^13 - 9 x^14 + 6 x^15 + 9 x^16 - 9 x^17 + 7 x^18 + 3 x^19 - 3 x^20 + 8 x^21)/((1 - x) (1 + x^3 + x^6) (1 + x^9 + x^18)), {x, 0, 120}], x] (* Michael De Vlieger, Jul 19 2016 *)
  • PARI
    Vec((1 +3*x -3*x^2 +2*x^3 +9*x^4 -9*x^5 +3*x^6 +9*x^7 -9*x^8 +4*x^9 +12*x^10 -12*x^11 +5*x^12 +9*x^13 -9*x^14 +6*x^15 +9*x^16 -9*x^17 +7*x^18 +3*x^19 -3*x^20 +8*x^21) / ((1 -x)*(1 +x^3 +x^6)*(1 +x^9 +x^18)) + O(x^200)) \\ Colin Barker, Jul 19 2016
    

Formula

a(n) = binomial(n+3,3) mod 3^2.
G.f.: (1 +3*x -3*x^2 +2*x^3 +9*x^4 -9*x^5 +3*x^6 +9*x^7 -9*x^8 +4*x^9 +12*x^10 -12*x^11 +5*x^12 +9*x^13 -9*x^14 +6*x^15 +9*x^16 -9*x^17 +7*x^18 +3*x^19 -3*x^20 +8*x^21) / ((1 -x)*(1 +x^3 +x^6)*(1 +x^9 +x^18)). - Colin Barker, Jul 19 2016

Extensions

Corrected g.f. by Colin Barker, Jul 19 2016