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.

A256299 Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 0 to the digits of n written in base 9, then convert back to base 10.

Original entry on oeis.org

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

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

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

Examples

			a(9) = 19 because 9 = 10[9] becomes 21[9] = 19.
a(80) = 0 because 80 = 88[9] becomes 00[9] = 0.
		

Programs

  • PARI
    A256299(n,b=9)=!n+apply(t->(t+1)%b,n=digits(n,b))*vector(#n,i,b^(#n-i))~

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

Original entry on oeis.org

1, 2, 0, 21, 22, 20, 1, 2, 0, 211, 212, 210, 221, 222, 220, 201, 202, 200, 11, 12, 10, 21, 22, 20, 1, 2, 0, 2111, 2112, 2110, 2121, 2122, 2120, 2101, 2102, 2100, 2211, 2212, 2210, 2221, 2222, 2220, 2201, 2202, 2200, 2011, 2012, 2010, 2021, 2022, 2020, 2001
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

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

Examples

			a(3) = 21 because 3 = "10" (in base 3) becomes "21".
a(8) = 0 because 8 = "22" (in base 3) becomes "00".
		

Programs

  • Mathematica
    Table[FromDigits[IntegerDigits[n,3]/.{0->1,1->2,2->0}],{n,0,60}] (* Harvey P. Dale, Jun 17 2022 *)
  • PARI
    A256303(n,b=3)=!n+eval(Strchr(apply(d->(d+1)%b+48, digits(n,b))))

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

Original entry on oeis.org

1, 2, 3, 0, 9, 10, 11, 8, 13, 14, 15, 12, 1, 2, 3, 0, 37, 38, 39, 36, 41, 42, 43, 40, 45, 46, 47, 44, 33, 34, 35, 32, 53, 54, 55, 52, 57, 58, 59, 56, 61, 62, 63, 60, 49, 50, 51, 48, 5, 6, 7, 4, 9, 10, 11, 8, 13, 14, 15, 12
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

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

Examples

			a(4) = 7 because 4 = 10[4] becomes 21[4] = 9.
a(15) = 0 because 15 = 33[4] becomes 00[4] = 0.
		

Programs

  • PARI
    A256294(n,b=4)=!n+apply(t->(t+1)%b,n=digits(n,b))*vector(#n,i,b^(#n-i))~

A256298 Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 0 to the digits of n written in base 8, then convert back to base 10.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 0, 17, 18, 19, 20, 21, 22, 23, 16, 25, 26, 27, 28, 29, 30, 31, 24, 33, 34, 35, 36, 37, 38, 39, 32, 41, 42, 43, 44, 45, 46, 47, 40, 49, 50, 51, 52, 53, 54, 55, 48, 57, 58, 59, 60, 61, 62, 63, 56, 1, 2, 3, 4
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

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

Examples

			a(8) = 17 because 8 = 10[8] becomes 21[8] = 17.
a(63) = 0 because 63 = 77[8] becomes 00[8] = 0.
		

Programs

  • Mathematica
    Table[FromDigits[IntegerDigits[n,8]+1/.(8->0),8],{n,0,60}] (* Harvey P. Dale, Jan 28 2023 *)
  • PARI
    A256298(n,b=8)=!n+apply(t->(t+1)%b,n=digits(n,b))*vector(#n,i,b^(#n-i))~

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

Original entry on oeis.org

1, 2, 3, 4, 0, 11, 12, 13, 14, 10, 16, 17, 18, 19, 15, 21, 22, 23, 24, 20, 1, 2, 3, 4, 0, 56, 57, 58, 59, 55, 61, 62, 63, 64, 60, 66, 67, 68, 69, 65, 71, 72, 73, 74, 70, 51, 52, 53, 54, 50, 81, 82, 83, 84, 80, 86, 87, 88, 89, 85
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

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

Examples

			a(5) = 11 because 5 = 10[5] becomes 21[5] = 11.
a(24) = 0 because 24 = 44[5] becomes 00[5] = 0.
		

Programs

  • PARI
    A256295(n,b=5)=!n+apply(t->(t+1)%b,n=digits(n,b))*vector(#n,i,b^(#n-i))~

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

Original entry on oeis.org

1, 2, 3, 4, 5, 0, 13, 14, 15, 16, 17, 12, 19, 20, 21, 22, 23, 18, 25, 26, 27, 28, 29, 24, 31, 32, 33, 34, 35, 30, 1, 2, 3, 4, 5, 0, 79, 80, 81, 82, 83, 78, 85, 86, 87, 88, 89, 84, 91, 92, 93, 94, 95, 90, 97, 98, 99, 100, 101, 96
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

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

Examples

			a(6) = 13 because 6 = 10[6] becomes 21[6] = 13.
a(35) = 0 because 35 = 55[6] becomes 00[6] = 0.
		

Programs

  • PARI
    A256296(n,b=6)=!n+apply(t->(t+1)%b,n=digits(n,b))*vector(#n,i,b^(#n-i))~

A256297 Apply the transformation 0 -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 0 to the digits of n written in base 7, then convert back to base 10.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 0, 15, 16, 17, 18, 19, 20, 14, 22, 23, 24, 25, 26, 27, 21, 29, 30, 31, 32, 33, 34, 28, 36, 37, 38, 39, 40, 41, 35, 43, 44, 45, 46, 47, 48, 42, 1, 2, 3, 4, 5, 6, 0, 106, 107, 108, 109, 110, 111, 105, 113, 114, 115, 116
Offset: 0

Views

Author

M. F. Hasler, Mar 22 2015

Keywords

Comments

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

Examples

			a(7) = 15 because 7 = 10[7] becomes 21[7] = 15.
a(48) = 0 because 48 = 66[7] becomes 00[7] = 0.
		

Programs

  • PARI
    A256297(n,b=7)=!n+apply(t->(t+1)%b,n=digits(n,b))*vector(#n,i,b^(#n-i))~
Showing 1-7 of 7 results.