login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A256303 Apply the transformation 0 -> 1 -> 2 -> 0 to the digits of n written in base 3; do not convert back to base 10. 8
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 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

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.

LINKS

Table of n, a(n) for n=0..51.

EXAMPLE

a(3) = 21 because 3 = "10" (in base 3) becomes "21".

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

PROG

(PARI) A256303(n, b=3)=!n+eval(Strchr(apply(d->(d+1)%b+48, digits(n, b))))

CROSSREFS

Sequence in context: A217311 A266167 A290465 * A156438 A282134 A293938

Adjacent sequences:  A256300 A256301 A256302 * A256304 A256305 A256306

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 15 07:56 EDT 2019. Contains 328026 sequences. (Running on oeis4.)