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!)
A199570 Table, each row contains the previous sequence in odd columns and the row number in even columns. 2
1, 1, 2, 1, 3, 1, 3, 2, 3, 1, 4, 1, 4, 2, 4, 1, 4, 3, 4, 1, 4, 3, 4, 2, 4, 3, 4, 1, 5, 1, 5, 2, 5, 1, 5, 3, 5, 1, 5, 3, 5, 2, 5, 3, 5, 1, 5, 4, 5, 1, 5, 4, 5, 2, 5, 4, 5, 1, 5, 4, 5, 3, 5, 4, 5, 1, 5, 4, 5, 3, 5, 4, 5, 2, 5, 4, 5, 3, 5, 4, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
The table starts:
1
1 2
1 3 1 3 2 3
1 4 1 4 2 4 1 4 3 4 1 4 3 4 2 4 3 4
...
PROG
(PARI) n=4; v=vector(3^n); v[1]=1; for(k=1, n, for(i=(s=3^(k-1))+1, 3^k, v[i]=if((i-s)%2, v[(i-s+1)\2], k+1))); v
(Python)
def A199570_list(row):
A = [1]
for i in range(2, row+1):
z = 2*(3**(i-2))
for j in range(1, z+1):
if j%2 != 0: A.append(A[int((j-1)/2)])
else: A.append(i)
return(A) # John Tyler Rascoe, Feb 19 2023
CROSSREFS
Cf. A025192 (row lengths), A070940.
Sequence in context: A294926 A079167 A304793 * A350338 A239707 A294928
KEYWORD
nonn,tabf,easy
AUTHOR
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 25 08:27 EDT 2024. Contains 371964 sequences. (Running on oeis4.)