OFFSET
1,1
COMMENTS
These numbers may have more than one such representation.
LINKS
R. J. Mathar, Table of n, a(n) for n = 1..1000
Colm Mulcahy, Additional Certainties, February 2008.
MAPLE
isA135558 := proc(n) # returns true if n is in the sequence
local xi, yi, x, y, z ;
for xi from 2 do
x := A000045(xi) ;
if 3*x > n then
return false;
end if;
for yi from xi+1 do
y := A000045(yi) ;
if x+2*y > n then
break;
else
z := n-x-y ;
if z >y and isA000045(z) then # see isFib in A000045
return true;
end if;
end if;
end do:
end do:
end proc:
A135558 := proc(n)
option remember;
local a;
if n = 1 then
6;
else
for a from procname(n-1)+1 do
if isA135558(a) then
return a;
end if;
end do:
end if;
end proc: # R. J. Mathar, Sep 09 2015
MATHEMATICA
fibs[n_ /; n >= 6] := Reap[Module[{k = 1}, While[Fibonacci[k] < n, Sow[Fibonacci[k++]]]]][[2, 1]];
okQ[n_] := AnyTrue[IntegerPartitions[n, {3}, fibs[n]], Length[Union[#]] == 3&];
Select[Range[6, 100], okQ] (* Jean-François Alcover, Dec 12 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Colm Mulcahy, Feb 23 2008, Mar 02 2008
EXTENSIONS
More terms from N. J. A. Sloane, Mar 01 2008, corrected Mar 05 2008
STATUS
approved