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.

A292269 If n is 1 or a prime, then a(n) = 1, otherwise a(n) = the third smallest divisor of n.

Original entry on oeis.org

1, 1, 1, 4, 1, 3, 1, 4, 9, 5, 1, 3, 1, 7, 5, 4, 1, 3, 1, 4, 7, 11, 1, 3, 25, 13, 9, 4, 1, 3, 1, 4, 11, 17, 7, 3, 1, 19, 13, 4, 1, 3, 1, 4, 5, 23, 1, 3, 49, 5, 17, 4, 1, 3, 11, 4, 19, 29, 1, 3, 1, 31, 7, 4, 13, 3, 1, 4, 23, 5, 1, 3, 1, 37, 5, 4, 11, 3, 1, 4, 9, 41, 1, 3, 17, 43, 29, 4, 1, 3, 13, 4, 31, 47, 19, 3, 1, 7, 9, 4, 1, 3, 1, 4, 5
Offset: 1

Views

Author

Antti Karttunen, Oct 04 2017

Keywords

Crossrefs

Cf. A008578 (positions of ones).

Programs

  • Mathematica
    a[n_?PrimeQ] = 1; a[1] = 1; a[n_] := Divisors[n][[3]]; Array[a, 100] (* Amiram Eldar, Jan 30 2025 *)
  • PARI
    A292269(n) = { my(ds=divisors(n)); if(numdiv(n)<3,1,ds[3]); }
    
  • Scheme
    (define (A292269 n) (let ((x (A000290 (A020639 n))) (y (A119288 n))) (if (and (zero? (modulo n x)) (or (= 1 y) (< x y))) x y)))

Formula

If A020639(n)^2 divides n [when n is in A283050] and either A119288(n) = 1 or A020639(n)^2 < A119288(n), then a(n) = A020639(n)^2, otherwise a(n) = A119288(n).

A171784 Fourth smallest divisor of smallest number having exactly n divisors.

Original entry on oeis.org

6, 8, 4, 8, 4, 4, 4, 8, 4, 8, 4, 4, 4, 8, 4, 8, 4, 4, 4, 8, 4, 4, 4, 4, 4, 8, 4, 8, 4, 4, 4, 4, 4, 8, 4, 4, 4, 8, 4, 8, 4, 4, 4, 8, 4, 4, 4, 4, 4, 8, 4, 4, 4, 4, 4, 8, 4, 8, 4, 4, 4, 4, 4, 8, 4, 4, 4, 8, 4, 8, 4, 4, 4, 4, 4, 8, 4, 4, 4, 8, 4, 4, 4, 4, 4, 8, 4, 4, 4, 4, 4, 4, 4, 8, 4, 4, 4, 8, 4, 8, 4, 4, 4, 8, 4
Offset: 4

Views

Author

J. Lowell, Oct 12 2010

Keywords

Comments

Fourth column of triangle in A081532. - N. J. A. Sloane, Oct 12 2010.

Examples

			a(5) = 8 because divisors of 16 are 1,2,4,8,16.
		

Crossrefs

Extensions

More terms from R. J. Mathar, Oct 13 2010
Showing 1-2 of 2 results.