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.

A232097 a(n) = least k such that 1+2+3+...+k (k-th triangular number) is a multiple of n!; a(n) = least k such that A232096(k) >= n.

Original entry on oeis.org

1, 3, 3, 15, 15, 224, 224, 4095, 76544, 512000, 9511424, 20916224, 410572799, 672358400, 2985984000, 1004293914624, 1004293914624, 78942076928000, 610877575397375, 83179139563520000, 490473044848410624, 6878928869130239999, 185974097225789210624, 1708887984313466880000, 68817755280574852890624
Offset: 1

Views

Author

Antti Karttunen, Nov 18 2013

Keywords

Comments

a(n) = least k such that A232096(k) >= n.
Each A000217(a(n)) is divisible by A118381(n).
Each a(n) or a(n)+1 is divisible by 2*A060818(n) = A086117(n+1).
Each a(n) or a(n)+1 is divisible by A060828(n), and similarly for all the higher bases.
If we were instead searching for the first occurrence where A232096 gets a new distinct value, then we would have another sequence, b, which would start as: 1, 3, 4, 15, 32, 224, 575, 4095, ... as those distinct values do not appear in monotone order, being for n>=1, A232096(b(n)) = 1, 3, 2, 5, 4, 7, 6, 8, 9, 10, ...

Examples

			a(5) = 15 as binomial(15 + 1, 2) = 120 is the smallest binomial that is divisible by 5! = 120. - _David A. Corneth_, Mar 29 2021
		

Crossrefs

Cf. A000217, A232096. A232101 gives the ratio A000217(a(n)) / n!

Programs

  • PARI
    a(n) = { my(p = 2*n!, f = factor(p), res = oo); for(i = 2^(#f~-1), 2^#f~-1, b = binary(i); pr = prod(j = 1, #f~, f[j,1]^(b[j]*f[j, 2])); ipr = p/pr; for(j = -1, 0, c = lift(chinese(Mod(-1-j, ipr), Mod(j, pr))); if(c > 0, res = min(res, c)))); res } \\ David A. Corneth, Mar 29 2021
  • Scheme
    (define (A232097 n) (let ((increment (* 2 (A060818 n)))) (let loop ((k increment)) (cond ((>= (A232096 (- k 1)) n) (- k 1)) ((>= (A232096 k) n) k) (else (loop (+ k increment)))))))
    ;; Alternative, very naive and slow version:
    (define (A232097v2 n) (let loop ((k 1)) (if (>= (A232096 k) n) k (loop (+ 1 k)))))
    

A342931 a(n) = A000217(A342930(n))/n^n.

Original entry on oeis.org

1, 7, 13, 511, 1562, 3013, 411771, 33554431, 193710244, 159687996, 142655835305, 2545864168851, 151437553296126, 4672524492952950, 190419981278726, 36893488147419103231, 413620130943168382088, 6624115793937660813847, 989209827830156794561989, 5961027129129868073483022, 579547002657587965773234693
Offset: 1

Views

Author

Seiichi Manyama, Mar 29 2021

Keywords

Crossrefs

Programs

  • PARI
    a(n) = my(k=1, m=n^n); while(k*(k+1)/2%m!=0, k++); k*(k+1)/(2*m);

Extensions

More terms from David A. Corneth, Mar 29 2021
Showing 1-2 of 2 results.