OFFSET
1,2
EXAMPLE
MATHEMATICA
lucasPalQ[n_] := Module[{s = {}, m = n, k = 1}, While[m > 0, If[m == 1, k = 1; AppendTo[s, k]; m = 0, If[m == 2, k = 0; AppendTo[s, k]; m = 0, While[LucasL[k] <= m, k++]; k--; AppendTo[s, k]; m -= LucasL[k]; k = 1]]]; PalindromeQ[IntegerDigits[Total[2^s], 2]]]; Join[{0}, Select[Range[1, 10^6, 2], PalindromeQ[IntegerDigits[#, 2]] && lucasPalQ[#] &]]
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Amiram Eldar, Feb 17 2022
STATUS
approved