OFFSET
1,1
LINKS
FORMULA
a(n) = floor(n!*Gamma(1/4)) - n*floor((n-1)!*Gamma(1/4)), for n > 1. - M. F. Hasler, Nov 26 2018
EXAMPLE
Gamma(1/4) = A068466 = 3.6256099... = 3/1! + 1/2! + 0 + 3/4! + 0 + 0 + 3/7! + 0 + 5/9! + 3/10! + 2/11! + ... - M. F. Hasler, Nov 26 2018
MATHEMATICA
r:= Gamma[1/4]; Table[If[n == 1, Floor[r], Floor[n!*r]- n*Floor[(n-1)!*r] ], {n, 1, 100}] (* G. C. Greubel, Mar 29 2018 *)
PROG
(PARI) default(realprecision, 250); b = gamma(1/4); for(n=1, 80, print1(if(n==1, floor(b), floor(n!*b) - n*floor((n-1)!*b)), ", ")) \\ G. C. Greubel, Mar 29 2018
(PARI) A068464(N=90, c=gamma(precision(.25, logint(N!, 10)+1)))=vector(N, n, if(n>1, c=c%1*n, c)\1) \\ - M. F. Hasler, Nov 26 2018
(Magma) SetDefaultRealField(RealField(250)); [Floor(Gamma(1/4))] cat [Floor(Factorial(n)*Gamma(1/4)) - n*Floor(Factorial((n-1))*Gamma(1/4)) : n in [2..80]]; // G. C. Greubel, Nov 27 2018
(Sage)
def A068464(n):
if (n==1): return floor(gamma(1/4))
else: return expand(floor(factorial(n)*gamma(1/4)) - n*floor(factorial(n-1)*gamma(1/4)))
[A068464(n) for n in (1..80)] # G. C. Greubel, Nov 27 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Mar 10 2002
STATUS
approved