A078145 Length of period of continued fraction for square root of 1+n!.
1, 2, 4, 0, 0, 40, 0, 153, 558, 3074, 4285, 22602, 180544, 766146, 766082, 524570, 9932193, 5193268, 763601450, 4284694240, 3059999982, 48742214702, 6354126960, 1975806716944, 929707144775
Offset: 1
Examples
Period for sqrt(3!+1) = sqrt(7) = {1,1,1,4}, a(3) = 4.
Programs
-
Mathematica
Table[Length[Last[ContinuedFraction[Sqrt[1+n! ]]]], {n, 1, 14}]
Formula
Extensions
a(15)-a(20) from Vaclav Kotesovec, Aug 28 2019
a(21) from Chai Wah Wu, Sep 23 2019
a(22)-a(23) from Chai Wah Wu, Sep 25 2019
a(24)-a(25) from Chai Wah Wu, Oct 01 2019