login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A163894
The least i for which A163355^n(i) is not equal to i, 0 if no such i exists, i.e., when A163355^n = A001477.
6
0, 2, 4, 2, 4, 2, 24, 2, 4, 2, 4, 2, 33, 2, 4, 2, 4, 2, 24, 2, 4, 2, 4, 2, 76, 2, 4, 2, 4, 2, 24, 2, 4, 2, 4, 2, 33, 2, 4, 2, 4, 2, 24, 2, 4, 2, 4, 2, 76, 2, 4, 2, 4, 2, 24, 2, 4, 2, 4, 2, 33, 2, 4, 2, 4, 2, 24, 2, 4, 2, 4, 2, 390, 2, 4, 2, 4, 2, 24, 2, 4, 2, 4, 2, 33, 2, 4, 2, 4, 2, 24, 2, 4, 2, 4
OFFSET
0,2
COMMENTS
A163355^n means n-fold application of A163355, i.e., A163355^2 = A163905, A163355^3 = A163915. By convention A163355^0 = A001477.
LINKS
MAPLE
A163894 := proc(n)
local i, a355, a, itr ;
if n = 0 then
return 0 ;
end if;
a := 0 ;
for i from 0 do
a355 := A163355(i) ;
for itr from 2 to n do
a355 := A163355(a355) ;
end do:
if a355 <> i then
return i ;
end if;
end do:
end proc:
seq(A163894(n), n=0..100) ; # R. J. Mathar, Nov 22 2023
PROG
(MIT Scheme:)
(define (A163894 n) (if (zero? n) 0 (let loop ((i 1) (n-th_power (compose-fun-to-n-th-power a163355 n))) (cond ((not (= i (n-th_power i))) i) (else (loop (1+ i) n-th_power))))))
(define (compose-fun-to-n-th-power fun n) (cond ((zero? n) (lambda (x) x)) (else (lambda (x) (fun ((compose-fun-to-n-th-power fun (- n 1)) x))))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Sep 19 2009
STATUS
approved