OFFSET
1,2
COMMENTS
a(n) = 0 iff n = 1, as a consequence of Catalan's conjecture or Mihăilescu's theorem. - Bernard Schott, Apr 25 2022
MATHEMATICA
Table[Max[Last[ContinuedFraction[Sqrt[1+3^u]]]], {u, 1, 32}]
PROG
(PARI) a(n) = if (n==1, 0, 2*sqrtint(3^n)); \\ Michel Marcus, Apr 20 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 13 2002
EXTENSIONS
a(1) changed and definition clarified by Chai Wah Wu, Sep 18 2021
a(31)-a(36) from Chai Wah Wu, Apr 20 2022
STATUS
approved