login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A048787 Write n in base 3 then rotate left one place. 11
1, 2, 1, 4, 7, 2, 5, 8, 1, 4, 7, 10, 13, 16, 19, 22, 25, 2, 5, 8, 11, 14, 17, 20, 23, 26, 1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34, 37, 40, 43, 46, 49, 52, 55, 58, 61, 64, 67, 70, 73, 76, 79, 2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 68 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

A={a(n)} is self-similar in the sense that the subsequence remaining after deleting the first occurrence of each integer is identical to the original sequence A (Kimberling's "upper-trimming" operation).

Fixed points of the transform are listed in A048328. Paolo P. Lava, Mar 02 2015

LINKS

Indranil Ghosh, Table of n, a(n) for n = 1..59049

EXAMPLE

a(33)=19 since 33 = 1020(base 3) -> 0201(base 3) = 19.

MATHEMATICA

Table[ FromDigits[ RotateLeft[ IntegerDigits[n, 3]], 3], {n, 1, 76}] - Zerinvary Lajos, Mar 25 2007

PROG

(Python)

def A048787(n):

....x=A007089(n)

....return int (x[1:]+x[0], 3) # Indranil Ghosh, Feb 08 2017

CROSSREFS

Cf. A255588-A255594, A255689-A255693.

Sequence in context: A261763 A091320 A225468 * A030102 A072010 A255588

Adjacent sequences:  A048784 A048785 A048786 * A048788 A048789 A048790

KEYWORD

nonn,base

AUTHOR

John W. Layman and Anthony C. Hill (hilla(AT)hotmail.com)

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 August 4 02:05 EDT 2021. Contains 346441 sequences. (Running on oeis4.)