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!)
A100721 a(n) = n - a(a(a(a(a(a(n-1)))))), a(1)=1. 2
1, 1, 2, 3, 4, 5, 6, 7, 7, 8, 8, 9, 10, 10, 11, 12, 13, 13, 14, 15, 16, 17, 17, 18, 19, 20, 21, 22, 22, 23, 24, 25, 26, 27, 28, 28, 29, 30, 31, 32, 33, 34, 34, 35, 35, 36, 37, 38, 39, 40, 41, 41, 42, 42, 43, 44, 44, 45, 46, 47, 48, 49, 50, 50, 51, 51, 52, 53, 53, 54, 55, 56, 56, 57, 58, 59 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
MAPLE
H:=proc(n) option remember; if n=1 then 1 else n-H(H(H(H(H(H(n-1)))))); fi; end proc;
MATHEMATICA
a[1]= 1; a[n_]:= a[n]= n - a[a[a[a[a[a[n-1]]]]]]; Table[ a[n], {n, 75}] (* Robert G. Wilson v, Dec 16 2004 *)
PROG
(SageMath)
@CachedFunction # a = A100721
def a(n): return 1 if (n==1) else n - a(a(a(a(a(a(n-1))))))
[a(n) for n in range(1, 100)] # G. C. Greubel, Nov 16 2022
CROSSREFS
Sequence in context: A195932 A327707 A134679 * A337979 A265359 A271490
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 12 2004
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 24 11:49 EDT 2024. Contains 371936 sequences. (Running on oeis4.)