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!)
A262904 If n = A259934(k) then a(n) = k, otherwise largest k such that A259934(k) is an ancestor of n in a tree generated by edge-relation A049820(child) = parent. 8

%I #11 Oct 11 2015 10:54:34

%S 0,0,1,0,0,0,2,0,0,2,2,2,3,2,2,2,2,2,4,2,2,2,5,2,2,5,5,2,5,2,6,2,5,2,

%T 7,2,2,2,7,2,5,2,8,2,7,2,9,2,7,9,7,2,9,2,10,2,7,2,11,2,7,2,12,2,2,2,

%U 11,2,12,2,13,2,7,2,13,2,13,2,14,2,13,13,14,13,7,13,14,13,13,13,15,13,14,13,16,13,7,13,14,13,13,13,17,13,7,13,18,13,7,13,17,13,17,13,19,13,17,13,20,13,7,21

%N If n = A259934(k) then a(n) = k, otherwise largest k such that A259934(k) is an ancestor of n in a tree generated by edge-relation A049820(child) = parent.

%H Antti Karttunen, <a href="/A262904/b262904.txt">Table of n, a(n) for n = 0..32767</a>

%F If A262693(n) = 1 then a(n) = A262694(n) [i.e., when n = A259934(k), a(n) = k], otherwise a(n) = a(A049820(n)).

%F a(n) = A262694(A262679(n)).

%F Other identities. For all n >= 0:

%F a(A262896(n)) = n. [This sequence works as a left inverse for injection A262896.]

%o (Scheme, two variants)

%o (definec (A262904 n) (cond ((= 1 (A262693 n)) (A262694 n)) (else (A262904 (A049820 n)))))

%o (define (A262904 n) (A262694 (A262679 n)))

%Y Cf. A049820, A262679, A262693, A262694, A262896, A262905, A262906, A262907.

%K nonn

%O 0,7

%A _Antti Karttunen_, Oct 07 2015

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 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)