login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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. 2
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
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.
LINKS
EXAMPLE
a(5) = 21 because 5 = "10" (in base 5) becomes "21".
a(24) = 0 because 24 = "44" (in base 5) becomes "00".
MATHEMATICA
Table[FromDigits[(IntegerDigits[n, 5]+1/.(5->0))], {n, 0, 60}] (* Harvey P. Dale, Nov 15 2020 *)
PROG
(PARI) A256305(n, b=5)=!n+eval(Strchr(apply(d->(d+1)%b+48, digits(n, b))))
CROSSREFS
Sequence in context: A265516 A256295 A179078 * A031219 A346689 A071498
KEYWORD
nonn,base,easy
AUTHOR
M. F. Hasler, Mar 22 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)