OFFSET
1,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1331
MATHEMATICA
max = 1000; Clear[f]; f[m_] := f[m] = Select[Table[3^x - y^2, {x, 0, m}, {y, 0, Ceiling[3^(x/2)]}] // Flatten // Union, 0 <= # <= max &]; f[1]; f[m = 2]; While[f[m] != f[m - 1], m++]; Print["m = ", m]; A051214 = f[m] (* Jean-François Alcover, May 14 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved