A272575 Perfect powers that are the sum of two Fibonacci numbers.
1, 4, 8, 9, 16, 36, 144, 1000, 1600, 14930496
Offset: 1
Keywords
Examples
8 is a term because 2^3 = 3 + 5.
Programs
-
Mathematica
Select[Range[10^4], Function[k, Or[k == 1, GCD @@ Map[Last, FactorInteger@ k] > 1] && Total@ Map[Times @@ Boole@ Map[MemberQ[s, #] &, #] &, Transpose@ {#, k - #} &@ Range[0, Floor[k/2]]] > 0]] (* Michael De Vlieger, May 03 2016 *)
-
PARI
list(lim)=my(upper=log(lim*sqrt(5))\log((1+sqrt(5))/2)+1, t, tt, v=List([1])); if(fibonacci(t)>lim, t--); for(i=3, upper, t=fibonacci(i); for(j=2, i-1, tt=t+fibonacci(j); if(tt>lim, break); if(ispower(tt), listput(v, tt)))); Set(v) \\ Charles R Greathouse IV, May 03 2016
Comments