OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
FORMULA
a(n^2) = A014062(n).
EXAMPLE
a(9) = C(9,3) = 9!/(3!*6!) = 84
MAPLE
seq( binomial(n, round(sqrt(n))), n=0..40); # G. C. Greubel, Jan 25 2020
MATHEMATICA
Table[Binomial[n, Round[Sqrt[n]]], {n, 0, 40}] (* G. C. Greubel, Jan 25 2020 *)
PROG
(PARI) vector(40, n, binomial(n, round(sqrt(n))) ) \\ G. C. Greubel, Jan 25 2020
(Magma) [Binomial(n, Round(Sqrt(n))): n in [0..40]]; // G. C. Greubel, Jan 25 2020
(Sage) [binomial(n, round(sqrt(n))) for n in (0..40)] # G. C. Greubel, Jan 25 2020
(Python)
from math import comb, isqrt
def A055789(n): return comb(n, (m:=isqrt(n))+ int((n-m*(m+1)<<2)>=1)) # Chai Wah Wu, Jul 29 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Henry Bottomley, Jul 13 2000
STATUS
approved