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

A256289 Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 0 to the digits of n written in base 9; do not convert back to base 10.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 0, 21, 22, 23, 24, 25, 26, 27, 28, 20, 31, 32, 33, 34, 35, 36, 37, 38, 30, 41, 42, 43, 44, 45, 46, 47, 48, 40, 51, 52, 53, 54, 55, 56, 57, 58, 50, 61, 62, 63, 64, 65, 66, 67, 68, 60, 71, 72, 73, 74, 75, 76
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

Base 9 variant of A256078 (base 2) and A048379 (base 10). See A256303 - A256308 for bases 3 through 8, and A256299 for the variant where the result is converted back to base 10.

Examples

			a(9) = 21 because 9 = "10" in base 9 becomes "21".
a(80) = 0 because 80 = "88" in base 9 becomes "00".
		

Programs

  • PARI
    A256289(n,b=9)=!n+eval(Strchr(apply(d->(d+1)%b+48, digits(n,b))))

A256293 Apply the transformation 0 -> 1 -> 2 -> 0 to the digits of n written in base 3, then convert back to base 10.

Original entry on oeis.org

1, 2, 0, 7, 8, 6, 1, 2, 0, 22, 23, 21, 25, 26, 24, 19, 20, 18, 4, 5, 3, 7, 8, 6, 1, 2, 0, 67, 68, 66, 70, 71, 69, 64, 65, 63, 76, 77, 75, 79, 80, 78, 73, 74, 72, 58, 59, 57, 61, 62, 60, 55, 56, 54, 13, 14, 12, 16, 17, 15
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

Base 3 variant of A035327 (base 2) and A048379 (base 10).
See A256294 - A256299 for bases 4 through 9, and A256303 for the variant where the result is not converted back to base 10.

Examples

			a(3) = 7 because 3 = 10[3] becomes 21[3] = 7.
a(8) = 0 because 8 = 22[3] becomes 00[3] = 0.
		

Programs

  • Mathematica
    Table[FromDigits[IntegerDigits[n,3]/.{0->1,1->2,2->0},3],{n,0,100}] (* Harvey P. Dale, Jan 21 2019 *)
  • PARI
    A256293(n,b=3)=!n+apply(t->(t+1)%b,n=digits(n,b))*vector(#n,i,b^(#n-i))~

A256308 Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 0 to the digits of n written in base 8; do not convert back to base 10.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 0, 21, 22, 23, 24, 25, 26, 27, 20, 31, 32, 33, 34, 35, 36, 37, 30, 41, 42, 43, 44, 45, 46, 47, 40, 51, 52, 53, 54, 55, 56, 57, 50, 61, 62, 63, 64, 65, 66, 67, 60, 71, 72, 73, 74, 75, 76, 77, 70, 1, 2, 3, 4
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

Base 8 variant of A256078 (base 2) and A048379 (base 10). See A256303 - A256307 for bases 3 through 7, A256289 for base 9, and A256298 for the variant where the result is converted back to base 10.

Examples

			a(8) = 21 because 8 = "10" in base 8 becomes "21".
a(63) = 0 because 63 = "77" in base 8 becomes "00".
		

Programs

  • Mathematica
    Table[FromDigits[IntegerDigits[n,8]/.{0->1,1->2,2->3,3->4,4->5,5->6,6->7,7->0}],{n,0,60}] (* Harvey P. Dale, Mar 29 2015 *)
  • PARI
    A256308(n,b=8)=!n+eval(Strchr(apply(d->(d+1)%b+48, digits(n,b))))

Extensions

Examples corrected by Harvey P. Dale, Mar 29 2015

A256304 Apply the transformation 0 -> 1 -> 2 -> 3 -> 0 to the digits of n written in base 4; do not convert back to base 10.

Original entry on oeis.org

1, 2, 3, 0, 21, 22, 23, 20, 31, 32, 33, 30, 1, 2, 3, 0, 211, 212, 213, 210, 221, 222, 223, 220, 231, 232, 233, 230, 201, 202, 203, 200, 311, 312, 313, 310, 321, 322, 323, 320, 331, 332, 333, 330, 301, 302, 303, 300, 11, 12, 13, 10, 21, 22, 23, 20, 31, 32
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

Base 4 variant of A256078 (base 2) and A048379 (base 10). See A256303 - A256308 for bases 3 through 8, A256289 for base 9, and A256294 for the variant where the result is converted back to base 10.

Examples

			a(4) = 21 because 4 = "10" (in base 4) becomes "21".
a(15) = 0 because 15 = "33" (in base 4) becomes "00".
		

Programs

  • PARI
    A256304(n,b=4)=!n+eval(Strchr(apply(d->(d+1)%b+48, digits(n,b))))

A256307 Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 0 to the digits of n written in base 7; do not convert back to base 10.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 0, 21, 22, 23, 24, 25, 26, 20, 31, 32, 33, 34, 35, 36, 30, 41, 42, 43, 44, 45, 46, 40, 51, 52, 53, 54, 55, 56, 50, 61, 62, 63, 64, 65, 66, 60, 1, 2, 3, 4, 5, 6, 0, 211, 212, 213, 214, 215, 216, 210, 221, 222, 223, 224
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

Base 7 variant of A256078 (base 2) and A048379 (base 10). See A256303 - A256308 for bases 3 through 8, A256289 for base 9, and A256297 for the variant where the result is converted back to base 10.

Examples

			a(7) = 21 because 7 = "10" (in base 7) becomes "21".
a(48) = 0 because 48 = "66" (in base 7) becomes "00".
		

Programs

  • Mathematica
    Table[FromDigits[IntegerDigits[n,7]/.{0->1,1->2,2->3,3->4,4->5,5->6,6->0}],{n,0,60}] (* Harvey P. Dale, Oct 09 2023 *)
  • PARI
    A256307(n,b=7)=!n+eval(Strchr(apply(d->(d+1)%b+48, digits(n,b))))

A256305 Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 0 to the digits of n written in base 5; do not convert back to base 10.

Original entry on oeis.org

1, 2, 3, 4, 0, 21, 22, 23, 24, 20, 31, 32, 33, 34, 30, 41, 42, 43, 44, 40, 1, 2, 3, 4, 0, 211, 212, 213, 214, 210, 221, 222, 223, 224, 220, 231, 232, 233, 234, 230, 241, 242, 243, 244, 240, 201, 202, 203, 204, 200, 311, 312, 313, 314, 310, 321, 322, 323
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

Base 5 variant of A256078 (base 2) and A048379 (base 10). See A256303 - A256308 for bases 3 through 8, A256289 for base 9, and A256295 for the variant where the result is converted back to base 10.

Examples

			a(5) = 21 because 5 = "10" (in base 5) becomes "21".
a(24) = 0 because 24 = "44" (in base 5) becomes "00".
		

Programs

  • Mathematica
    Table[FromDigits[(IntegerDigits[n,5]+1/.(5->0))],{n,0,60}] (* Harvey P. Dale, Nov 15 2020 *)
  • PARI
    A256305(n,b=5)=!n+eval(Strchr(apply(d->(d+1)%b+48, digits(n,b))))

A256306 Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 0 to the digits of n written in base 6; do not convert back to base 10.

Original entry on oeis.org

1, 2, 3, 4, 5, 0, 21, 22, 23, 24, 25, 20, 31, 32, 33, 34, 35, 30, 41, 42, 43, 44, 45, 40, 51, 52, 53, 54, 55, 50, 1, 2, 3, 4, 5, 0, 211, 212, 213, 214, 215, 210, 221, 222, 223, 224, 225, 220, 231, 232, 233, 234, 235, 230, 241, 242, 243, 244, 245, 240
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

Base 6 variant of A256078 (base 2) and A048379 (base 10). See A256303 - A256308 for bases 3 through 8, A256289 for base 9, and A256296 for the variant where the result is converted back to base 10.

Examples

			a(6) = 21 because 6 = "10" (in base 6) becomes "21".
a(35) = 0 because 35 = "55" (in base 6) becomes "00".
		

Programs

  • PARI
    A256306(n,b=6)=!n+eval(Strchr(apply(d->(d+1)%b+48, digits(n,b))))
Showing 1-7 of 7 results.