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-3 of 3 results.

A331216 a(n) is the number of ways to write n = u + v where the binary representations of u and of v have the same number of 0's and the same number of 1's.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Jan 12 2020

Keywords

Comments

In other words, a(n) is the number of ways to write n as the sum of two binary anagrams.
Leading zeros are ignored.

Examples

			For n = 22:
- we can write 22 as u + v in the following ways:
  u   v   bin(u)  bin(v)
  --  --  ------  ------
  10  12    1010    1100
  11  11    1011    1011
  12  10    1100    1010
- hence a(22) = 3.
		

Crossrefs

Cf. A330827 (ternary analog), A331218 (decimal analog).

Programs

  • PARI
    See Links section.

Formula

a(2*n) > 0.
a(2*n) >= a(n).
Apparently, a(3*2^k-1-x) = a(3*2^k-1+x) for any k >= 0 and x = -2^k..2^k.

A331218 a(n) is the numbers of ways to write n = u + v where the decimal representations of u and of v have the same number of digits d for d = 0..9.

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Jan 12 2020

Keywords

Comments

In other words, a(n) is the number of ways to write n as the sum of two anagrams.
Leading zeros are ignored.

Examples

			For n = 44:
- we have the following ways to write 44 as a sum of two anagrams:
  u   v
  --  --
  13  31
  22  22
  31  13
- hence a(44) = 3.
		

Crossrefs

Cf. A330827 (ternary analog), A331216 (binary analog).

Programs

  • PARI
    See Links section.

A330831 a(n) = (F_n^2 - 1)^2, where F_n is a Fermat prime, A019434.

Original entry on oeis.org

64, 576, 82944, 4362338304, 18447869990796263424
Offset: 1

Views

Author

Walter Kehowski, Jan 06 2020

Keywords

Comments

Also the second element of the power-spectral basis of A330829.
The first element of the power-spectral basis of A330829 is A330830.

Examples

			a(0) = (3^2 - 1)^2 = 64.
		

Crossrefs

Programs

  • Maple
    F := proc(n) return 2^(2^n)+1 end;
    a := proc(n) if isprime(F(n)) then return (F(n)^2-1)^2 fi; end;
    [seq(a(n),n=0..4)];

Formula

a(n) = (F(n)^2 - 1)^2, where F(n) = 2^(2^n)+1 is a Fermat prime.
Showing 1-3 of 3 results.