OFFSET
0,5
COMMENTS
LINKS
Yuriy Sibirmovsky, Table of n, a(n) for n = 0..2999
Yuriy Sibirmovsky, The plot of a(n) for n=0..2999 (with linear regression)
EXAMPLE
a(2) = a(1) + a(0), so a(3) = 1.
a(3) = a(1) + a(0) = a(2) + a(0), so a(4) = 2.
a(4) = a(3) + a(2) = a(3) + a(1) = a(2) + a(1), so a(5) = 3.
MATHEMATICA
Nm=100;
A=Table[1, {n, 1, Nm}];
A[[1]]=0;
Do[Nc=0;
Do[If[A[[j]]+A[[k]]==A[[n]] && k!=j, Nc++], {j, 1, n-1}, {k, 1, j}];
A[[n+1]]=Nc, {n, 3, Nm-1}];
A
CROSSREFS
KEYWORD
nonn
AUTHOR
Yuriy Sibirmovsky, Nov 16 2016
STATUS
approved