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.

A038521 Number of elements of GF(2^n) with trace 1 and subtrace 1.

Original entry on oeis.org

0, 0, 2, 1, 4, 10, 12, 36, 64, 120, 272, 496, 1024, 2080, 4032, 8256, 16384, 32640, 65792, 130816, 262144, 524800, 1047552, 2098176, 4194304, 8386560, 16781312, 33550336, 67108864, 134225920, 268419072, 536887296, 1073741824, 2147450880, 4295032832, 8589869056
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    I:=[0,0,2,1]; [m le 4 select I[m] else  2*Self(m-2) + 4*Self(m-3): m in [1..33]]; // Marius A. Burtea, Aug 02 2019
  • Maple
    A038521 := proc(n) local r,a,i ; if n mod 2 = 1 then r := 3 ; else r := 1 ; fi; a :=0 ; for i from r to n by 4 do a := a+binomial(n,i) ; od; a ; end: for n from 0 to 40 do printf("%d,",A038521(n)) ; od: # R. J. Mathar, Oct 20 2008
  • Mathematica
    LinearRecurrence[{0, 2, 4}, {0, 0, 2, 1}, 33] (* Jean-François Alcover, May 08 2023 *)
  • PARI
    concat([0, 0], Vec(x*(2 + x) / ((1 - 2*x)*(1 + 2*x + 2*x^2)) + O(x^35))) \\ Colin Barker, Aug 02 2019
    

Formula

a(n) = C(n, r+0) + C(n, r+4) + C(n, r+8) + ... where r = 3 if n odd, r = 1 if n even.
a(n) = (2^(n-1) - A108520(n-1))/2 if n > 0. - R. J. Mathar, Jan 29 2008
From Colin Barker, Aug 02 2019: (Start)
G.f.: x^2*(2 + x) / ((1 - 2*x)*(1 + 2*x + 2*x^2)).
a(n) = ((-1-i)^(n-2) + (-1+i)^(n-2) + 2^(n-1)) / 2 = 2*A176739(n-2) + A176739(n-3).
a(n) = 2*a(n-2) + 4*a(n-3) for n>3.
(End)

Extensions

Values duplicated A038520 and were replaced by R. J. Mathar, Oct 20 2008
Missing a(0) = 0 inserted by Andrey Zabolotskiy, Nov 12 2024

A038519 Number of elements of GF(2^n) with trace 0 and subtrace 1.

Original entry on oeis.org

1, 0, 1, 3, 2, 10, 16, 28, 72, 120, 256, 528, 992, 2080, 4096, 8128, 16512, 32640, 65536, 131328, 261632, 524800, 1048576, 2096128, 4196352, 8386560, 16777216, 33558528, 67100672, 134225920, 268435456, 536854528, 1073774592
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Magma
    I:=[1,0,1,3]; [m le 4 select I[m] else 2*Self(m-2)+4*Self(m-3):m in [1..33]]; // Marius A. Burtea, Aug 02 2019
  • PARI
    Vec((1 - x^2 - x^3) / ((1 - 2*x)*(1 + 2*x + 2*x^2)) + O(x^40)) \\ Colin Barker, Aug 02 2019
    

Formula

a(n) = C(n, r+0) + C(n, r+4) + C(n, r+8) + ... where r = 2 if n odd, r = 0 if n even.
From Colin Barker, Aug 02 2019: (Start)
G.f.: (1 - x^2 - x^3) / ((1 - 2*x)*(1 + 2*x + 2*x^2)). - Creighton Dement, Apr 29 2005, corrected by Colin Barker, Aug 02 2019
a(n) = ((-1-i)^n + (-1+i)^n + 2^n) / 4 for n>0.
a(n) = 2*a(n-2) + 4*a(n-3) for n>3.
(End)

A038520 Number of elements of GF(2^n) with trace 1 and subtrace 0.

Original entry on oeis.org

0, 1, 0, 3, 4, 6, 20, 28, 64, 136, 240, 528, 1024, 2016, 4160, 8128, 16384, 32896, 65280, 131328, 262144, 523776, 1049600, 2096128, 4194304, 8390656, 16773120, 33558528, 67108864, 134209536, 268451840, 536854528, 1073741824
Offset: 0

Views

Author

Keywords

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{0,2,4},{0,1,0,3},40] (* Harvey P. Dale, Oct 15 2017 *)
  • PARI
    concat(0, Vec(x*(1 + x^2) / ((1 - 2*x)*(1 + 2*x + 2*x^2)) + O(x^40))) \\ Colin Barker, Aug 02 2019

Formula

a(n) = C(n, r+0)+C(n, r+4)+C(n, r+8)+... where r = 1 if n odd, r = 3 if n even.
a(n) = 2*a(n-2) + 4*a(n-3), n > 3. - Paul Curtz, Feb 06 2008
From Colin Barker, Aug 02 2019: (Start)
G.f.: x*(1 + x^2) / ((1 - 2*x)*(1 + 2*x + 2*x^2)).
a(n) = (2^n + i*((-1-i)^n - (-1+i)^n)) / 4 for n>0, where i=sqrt(-1).
(End)

A362374 Number of solutions of y^2 + y = x^3 + x where x and y are in GF(2^n).

Original entry on oeis.org

4, 4, 4, 24, 24, 64, 144, 224, 544, 1024, 1984, 4224, 8064, 16384, 33024, 65024, 131584, 262144, 523264, 1050624, 2095104, 4194304, 8392704, 16769024, 33562624, 67108864, 134201344, 268468224, 536838144, 1073741824, 2147549184, 4294836224, 8590065664
Offset: 1

Views

Author

Michel Marcus, Apr 20 2023

Keywords

Crossrefs

Cf. A038518.

Programs

  • Mathematica
    LinearRecurrence[{0, 2, 4}, {4, 4, 4}, 50] (* Paolo Xausa, May 28 2024 *)

Formula

a(n) = 4 * A038518(n). - Joerg Arndt, Apr 20 2023
From Stefano Spezia, May 28 2024: (Start)
G.f.: 4*x*(1 + x - x^2)/((1 - 2*x)*(1 + 2*x + 2*x^2)).
E.g.f.: 2*cosh(x)*(cosh(x) - cos(x)) + 2*(cosh(x) + cos(x))*sinh(x). (End)
Showing 1-4 of 4 results.