OFFSET
2,1
LINKS
Antti Karttunen, Table of n, a(n) for n = 2..10000
FORMULA
MATHEMATICA
p[n_, k_]=n!/Product[i, {i, 1, n-Floor[n/3^k]}] digits=200 f[n_]=Sum[Floor[p[n, k]/p[n-1, k]], {k, 1, 8}] at=Table[f[n], {n, 2, digits}]
PROG
(PARI)
A254864bi(n, k) = prod(i=(1+(n-(n\(3^k)))), n, i);
A088487(n) = sum(k=1, 8, (A254864bi(n, k)\A254864bi(n-1, k)));
for(n=2, 10000, write("b088487.txt", n, " ", A088487(n)));
(Scheme)
(define (A088487 n) (add (lambda (k) (floor->exact (/ (A254864bi n k) (A254864bi (- n 1) k)))) 1 8)) ;; Code for A254864bi given in A254864.
;; The following function implements sum_{i=lowlim..uplim} intfun(i)
(define (add intfun lowlim uplim) (let sumloop ((i lowlim) (res 0)) (cond ((> i uplim) res) (else (sumloop (1+ i) (+ res (intfun i)))))))
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Roger L. Bagula, Nov 09 2003
EXTENSIONS
Edited by Antti Karttunen, Feb 09 2015
STATUS
approved