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.

Showing 1-4 of 4 results.

A255649 Partial sums of A134661.

Original entry on oeis.org

1, 4, 7, 14, 17, 26, 33, 46, 49, 58, 67, 86, 93, 114, 127, 154, 157, 166, 175, 196, 205, 232, 251, 286, 293, 314, 335, 376, 389, 428, 455, 510, 513, 522, 531, 552, 561, 588, 609, 648, 657, 684, 711, 766, 785, 842, 877, 950, 957, 978, 999, 1048, 1069, 1132, 1173, 1248, 1261, 1300, 1339, 1418, 1445, 1526, 1581, 1690
Offset: 0

Views

Author

Omar E. Pol, Mar 01 2015

Keywords

Comments

All the following are of the same type: A006046, A134659, A255645, A255650-A255653. For more information see A255488.

Crossrefs

A255488 Number of odd terms in expansion of (1 + x + x^2 + x^3 + x^4 + x^5)^n.

Original entry on oeis.org

1, 6, 6, 12, 6, 16, 12, 24, 6, 36, 16, 32, 12, 36, 24, 48, 6, 36, 36, 72, 16, 56, 32, 64, 12, 72, 36, 72, 24, 68, 48, 96, 6, 36, 36, 72, 36, 96, 72, 144, 16, 96, 56, 112, 32, 100, 64, 128, 12, 72, 72, 144, 36, 120, 72, 144, 24, 144, 68, 136
Offset: 0

Views

Author

N. J. A. Sloane, Mar 01 2015

Keywords

Comments

All the following are of the same type: A001316, A071053, A134660, A134661, A134662, A255485, A247649, A255486. It would be nice to have some unifying formula or recurrence. (Restating the definition, these are the Hamming weights of the n-th powers of the corresponding polynomials over GF(2). - Joerg Arndt, Mar 02 2015)

Examples

			From _Omar E. Pol_, Mar 01 2015: (Start)
Written as an irregular triangle in which the row lengths are the terms of A011782, the sequence begins:
1;
6;
6,12;
6,16,12,24;
6,36,16,32,12,36,24,48;
6,36,36,72,16,56,32,64,12,72,36,72,24,68,48,96;
6,36,36,72,36,96,72,144,16,96,56,112,32,100,64,128,12,72,72,144,36,120,72,144,24,144,68,136...
...
In each row the first quarter of the terms (and no more) are equal to 6 times the beginning of the sequence itself (corrected after Sloane's comment in A247649, Mar 03 2015).
(End)
		

Crossrefs

Programs

  • Maple
    r1:=proc(f) local g,n; g:=n->nops(expand(f^n) mod 2); [seq(g(n),n=0..90)]; end;
    r1(1+x+x^2+x^3);
  • Mathematica
    a[n_] := Count[CoefficientList[(1 + x + x^2 + x^3 + x^4 + x^5)^n, x], _?OddQ];
    Table[a[n], {n, 0, 90}] (* Jean-François Alcover, Apr 06 2017 *)
  • PARI
    a(n) = {my(pol=(1+x+x^2+x^3+x^4+x^5)*Mod(1,2)); subst(lift(pol^n), x, 1);} \\ Michel Marcus, Mar 01 2015

A255485 Number of odd terms in expansion of (1 + x + x^2 + x^4)^n.

Original entry on oeis.org

1, 4, 4, 8, 4, 12, 8, 14, 4, 16, 12, 24, 8, 24, 14, 30, 4, 16, 16, 32, 12, 36, 24, 44, 8, 32, 24, 48, 14, 46, 30, 60, 4, 16, 16, 32, 16, 48, 32, 56, 12, 48, 36, 72, 24, 76, 44, 92, 8, 32, 32, 64, 24, 72, 48, 88, 14, 56, 46, 92, 30, 96, 60, 118, 4, 16, 16, 32, 16, 48, 32, 56, 16, 64, 48, 96
Offset: 0

Views

Author

N. J. A. Sloane, Feb 28 2015

Keywords

Crossrefs

Programs

  • Maple
    r1:=proc(f) local g,n; g:=n->nops(expand(f^n) mod 2); [seq(g(n),n=0..90)]; end;
    r1(1+x+x^2+x^4);
    # Alternative:
    P:= 1:
    for n from 0 to 100 do
      A[n]:= nops(P);
      P:= expand(P*(1+x+x^2+x^4)) mod 2;
    od:
    seq(A[i],i=0..100); # Robert Israel, Jan 07 2018
  • Mathematica
    a[n_] := Count[(List @@ Expand[(1+x+x^2+x^4)^n]) /. x -> 1, _?OddQ]; a[0] = 1;
    Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Feb 06 2023 *)
  • PARI
    a(n) = {my(pol=(1+x+x^2+x^4)*Mod(1,2)); subst(lift(pol^n), x, 1);} \\ Michel Marcus, Mar 01 2015

Formula

From Robert Israel, Jan 07 2018: (Start)
a(2*n) = a(n).
a(8*n+1) = 4*a(n). (End)

A255486 Number of odd terms in expansion of (1+x+x^3+x^4)^n.

Original entry on oeis.org

1, 4, 4, 10, 4, 12, 10, 18, 4, 16, 12, 28, 10, 28, 18, 38, 4, 16, 16, 40, 12, 40, 28, 52, 10, 40, 28, 64, 18, 52, 38, 74, 4, 16, 16, 40, 16, 48, 40, 72, 12, 48, 40, 96, 28, 88, 52, 108, 10, 40, 40, 100, 28, 96, 64, 120, 18, 72, 52, 120, 38
Offset: 0

Views

Author

N. J. A. Sloane, Mar 01 2015

Keywords

Crossrefs

Programs

  • Maple
    r1:=proc(f) local g,n; g:=n->nops(expand(f^n) mod 2); [seq(g(n),n=0..90)]; end;
    r1(1+x+x^2+x^3);
  • Mathematica
    a[n_] := Count[(List @@ Expand[(1+x+x^3+x^4)^n]) /. x -> 1, _?OddQ]; a[0] = 1;
    Table[a[n], {n, 0, 60}] (* Jean-François Alcover, Apr 04 2017 *)
  • PARI
    a(n) = {my(pol=(1+x+x^3+x^4)*Mod(1,2)); subst(lift(pol^n), x, 1);} \\ Michel Marcus, Mar 01 2015
Showing 1-4 of 4 results.