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

A175469 a(n) = The value of k in the representation of A175468(n). See A175468 for definition.

Original entry on oeis.org

1, 1, 1, 2, 3, 1, 2, 3, 1, 2, 4, 5, 3, 6, 7, 1, 2, 4, 5, 3, 6, 7, 1, 2, 4, 8, 9, 5, 10, 11, 3, 6, 12, 13, 7, 14, 15, 1, 2, 4, 8, 9, 5, 10, 11, 3, 6, 12, 13, 7, 14, 15, 1, 2, 4, 8, 16, 17, 9, 18, 19, 5, 10, 20, 21, 11, 22, 23, 3, 6, 12, 24, 25, 13, 26, 27, 7, 14, 28, 29, 15, 30, 31, 1, 2, 4, 8, 16
Offset: 1

Views

Author

Leroy Quet, May 24 2010

Keywords

Crossrefs

Extensions

More terms from Jon E. Schoenfield, Jun 13 2010

A175470 a(n) = The value of m in the representation of A175468(n). See A175468 for definition.

Original entry on oeis.org

1, 2, 3, 2, 2, 4, 3, 3, 5, 4, 3, 3, 4, 3, 3, 6, 5, 4, 4, 5, 4, 4, 7, 6, 5, 4, 4, 5, 4, 4, 6, 5, 4, 4, 5, 4, 4, 8, 7, 6, 5, 5, 6, 5, 5, 7, 6, 5, 5, 6, 5, 5, 9, 8, 7, 6, 5, 5, 6, 5, 5, 7, 6, 5, 5, 6, 5, 5, 8, 7, 6, 5, 5, 6, 5, 5, 7, 6, 5, 5, 6, 5, 5, 10, 9, 8, 7, 6, 6, 7, 6, 6, 8, 7, 6, 6, 7, 6, 6, 9, 8, 7, 6, 6, 7
Offset: 1

Views

Author

Leroy Quet, May 24 2010

Keywords

Crossrefs

Extensions

More terms from Jon E. Schoenfield, Jun 13 2010

A327187 For any n >= 0: consider the different ways to split the binary representation of n into two (possibly empty) parts, say with value x and y; a(n) is the least possible value of x XOR y (where XOR denotes the bitwise XOR operator).

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Aug 25 2019

Keywords

Examples

			For n=42:
- the binary representation of 42 is "101010",
- there are 7 ways to split it:
   - "" and "101010": x=0 and y=42: 0 XOR 42 = 42,
   - "1" and "01010": x=1 and y=10: 1 XOR 10 = 11,
   - "10" and "1010": x=2 and y=10: 2 XOR 10 = 8,
   - "101" and "010": x=5 and y=2: 5 XOR 2 = 7,
   - "1010" and "10": x=10 and y=2: 10 XOR 2 = 8,
   - "10101" and "0": x=21 and y=0: 21 XOR 0 = 21,
   - "101010" and "": x=42 and y=0: 42 XOR 0 = 42,
- hence a(42) = 7.
		

Crossrefs

See A327186 for other variants.
Cf. A175468.

Programs

  • PARI
    a(n) = my (v=oo, b=binary(n)); for (w=0, #b, v=min(v, bitxor(fromdigits(b[1..w],2), fromdigits(b[w+1..#b],2)))); v

Formula

a(n) = 0 iff n = 0 or n belongs to A175468.

A327191 For any n >= 0: consider the different ways to split the binary representation of n into two (possibly empty) parts, say with value x and y; a(n) is the least possible value of abs(x - y).

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Aug 25 2019

Keywords

Examples

			For n=42:
- the binary representation of 42 is "101010",
- there are 7 ways to split it:
   - "" and "101010": x=0 and y=42: abs(0 - 42) = 42,
   - "1" and "01010": x=1 and y=10: abs(1 - 10) = 9,
   - "10" and "1010": x=2 and y=10: abs(2 - 10) = 8,
   - "101" and "010": x=5 and y=2: abs(5 - 2) = 3,
   - "1010" and "10": x=10 and y=2: abs(10 - 2) = 8,
   - "10101" and "0": x=21 and y=0: abs(21 - 0) = 21,
   - "101010" and "": x=42 and y=0: abs(42 - 0) = 42,
- hence a(42) = 3.
		

Crossrefs

See A327186 for other variants.
Cf. A175468.

Programs

  • PARI
    a(n) = my (v=oo, b=binary(n)); for (w=0, #b, v=min(v, abs(fromdigits(b[1..w],2) - fromdigits(b[w+1..#b],2)))); v

Formula

a(n) = 0 iff n = 0 or n belongs to A175468.

A327195 For any n >= 0: consider the different ways to split the binary representation of n into two (possibly empty) parts, say with value x and y; a(n) is the least possible value of abs(x^2 - y^2).

Original entry on oeis.org

0, 1, 1, 0, 1, 0, 3, 8, 1, 0, 0, 5, 9, 8, 5, 0, 1, 0, 0, 5, 12, 21, 21, 16, 9, 8, 5, 0, 7, 16, 27, 40, 1, 0, 0, 5, 0, 9, 20, 33, 25, 24, 21, 16, 9, 0, 11, 24, 9, 8, 5, 0, 7, 11, 0, 13, 49, 48, 45, 40, 33, 24, 13, 0, 1, 0, 0, 5, 0, 9, 20, 15, 48, 65, 77, 72, 65
Offset: 0

Views

Author

Rémy Sigrist, Aug 25 2019

Keywords

Examples

			For n=42:
- the binary representation of 42 is "101010",
- there are 7 ways to split it:
   - "" and "101010": x=0 and y=42: abs(0^2 - 42^2) = 1764,
   - "1" and "01010": x=1 and y=10: abs(1^2 - 10^2) = 99,
   - "10" and "1010": x=2 and y=10: abs(2^2 - 10^2) = 96,
   - "101" and "010": x=5 and y=2: abs(5^2 - 2^2) = 21,
   - "1010" and "10": x=10 and y=2: abs(10^2 - 2^2) = 96,
   - "10101" and "0": x=21 and y=0: abs(21^2 - 0^2) = 441,
   - "101010" and "": x=42 and y=0: abs(42^2 - 0^2) = 1764,
- hence a(42) = 21.
		

Crossrefs

See A327186 for other variants.
Cf. A175468.

Programs

  • PARI
    a(n) = my (v=oo, b=binary(n)); for (w=0, #b, v=min(v, abs(fromdigits(b[1..w],2)^2 - fromdigits(b[w+1..#b],2)^2))); v

Formula

a(n) = 0 iff n = 0 or n belongs to A175468.
a(n) = 1 iff n is a power of 2.
Showing 1-5 of 5 results.