OFFSET
0,3
COMMENTS
Define three sequence a, b, c by: a[0]:=1; b[0]:=0; c[0]:=0; for n >= 1, b[n]:=n-c[b[n-1]]; a[n]:=n-b[a[n-1]]; c[n]:=n-a[c[n-1]].
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 0..10000
Th. Stoll, On Hofstadter's married functions, Fib. Q., 46/47 (2008/2009), 62-67.
MAPLE
M:=130;
a[0]:=1; b[0]:=0; c[0]:=0;
for n from 1 to M do
b[n]:=n-c[b[n-1]];
a[n]:=n-b[a[n-1]];
c[n]:=n-a[c[n-1]];
od:
A:=[seq(a[n], n=0..M)];
B:=[seq(b[n], n=0..M)];
C:=[seq(c[n], n=0..M)];
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 30 2009
STATUS
approved