cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A088488 a(n) = Sum_{k=1..8} floor(A254876(n,k)/A254876(n-1,k)), where A254876(n,k) = n! / (Product_{m=(n-floor((2n)/(3^k))) .. (n-floor((n)/(3^k)))} m).

Original entry on oeis.org

8, 17, 22, 26, 40, 43, 49, 66, 65, 69, 87, 87, 68, 109, 108, 109, 137, 130, 130, 157, 153, 133, 180, 174, 171, 211, 196, 191, 227, 218, 186, 250, 240, 232, 280, 262, 253, 298, 285, 164, 319, 304, 292, 350, 327, 313, 367, 349, 292, 390, 371, 354, 426, 393, 375
Offset: 2

Views

Author

Roger L. Bagula, Nov 09 2003

Keywords

Crossrefs

Programs

  • Mathematica
    p[n_, k_]=n!/Product[i, {i, n-Floor[2*n/3^k], n-Floor[n/3^k]}]
    f[n_]=Sum[Floor[p[n, k]/p[n-1, k]], {k, 1, 8}]
    at=Table[f[n], {n, 2, 200}]
  • PARI
    A088488(n) = sum(k=1,8,(A254876bi(n,k)\A254876bi(n-1,k)));
    A254876bi(n,k) = n! / prod(i=(n-((2*n)\(3^k))),(n-(n\(3^k))),i);
    for(n=2, 10000, write("b088488.txt", n, " ", A088488(n)));
    
  • Scheme
    (define (A088488 n) (add (lambda (k) (floor->exact (/ (A254876bi n k) (A254876bi (- n 1) k)))) 1 8))
    ;; 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)))))))

Formula

a(n) = Sum_{k=1..8} floor(A254876(n,k)/A254876(n-1,k)), where A254876(n,k) = n! / (Product_{m=(n-floor((2n)/(3^k))) .. (n-floor((n)/(3^k)))} m).

Extensions

Edited by Antti Karttunen, Feb 09 2015

A254864 Triangular table T(n,k) = n! / (n-floor(n/3^k))!, read by rows T(1,1), T(2,1), T(2,2), T(3,1), T(3,2), T(3,3), ...

Original entry on oeis.org

1, 1, 1, 3, 1, 1, 4, 1, 1, 1, 5, 1, 1, 1, 1, 30, 1, 1, 1, 1, 1, 42, 1, 1, 1, 1, 1, 1, 56, 1, 1, 1, 1, 1, 1, 1, 504, 9, 1, 1, 1, 1, 1, 1, 1, 720, 10, 1, 1, 1, 1, 1, 1, 1, 1, 990, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11880, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 17160, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 24024, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Antti Karttunen, Feb 09 2015

Keywords

Comments

An auxiliary array for computing A088487.

Examples

			The first 27 rows of a triangular table:
1
1, 1
3, 1, 1
4, 1, 1, 1
5, 1, 1, 1, 1
30, 1, 1, 1, 1, 1
42, 1, 1, 1, 1, 1, 1
56, 1, 1, 1, 1, 1, 1, 1
504, 9, 1, 1, 1, 1, 1, 1, 1
720, 10, 1, 1, 1, 1, 1, 1, 1, 1
990, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1
11880, 12, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
17160, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
24024, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
360360, 15, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
524160, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
742560, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
13366080, 306, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
19535040, 342, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
27907200, 380, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
586051200, 420, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
859541760, 462, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
1235591280, 506, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
29654190720, 552, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
43609104000, 600, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
62990928000, 650, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
1700755056000, 17550, 27, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
...
(the last ones truncated a bit).
		

Crossrefs

The leftmost column: A254865.

Programs

  • PARI
    A254864bi(n,k) = prod(i=(1+(n-(n\(3^k)))),n,i);
    
  • Scheme
    (define (A254864 n) (A254864bi (A002024 n) (A002260 n)))
    ;; The above function can then use either one of these:
    (define (A254864bi n k) (/ (A000142 n) (A000142 (- n (floor->exact (/ n (expt 3 k)))))))
    (define (A254864bi n k) (mul A000027 (+ 1 (- n (floor->exact (/ n (expt 3 k))))) n))
    (define (mul intfun lowlim uplim) (let multloop ((i lowlim) (res 1)) (cond ((> i uplim) res) (else (multloop (+ 1 i) (* res (intfun i)))))))

Formula

T(n,k) = n! / (n-floor(n/3^k))! = A000142(n) / A000142(n-floor(n/A000244(k))).
T(n,k) = Product_{m=1+(n-floor(n/(3^k))) .. n} m.
Showing 1-2 of 2 results.