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.

A346708 a(n) is the least k > 1 such that p(n) divides p(n^k), or 0 if no such k exists (p = A000041).

Original entry on oeis.org

2, 3, 2, 3, 3, 6, 7, 2, 10
Offset: 1

Views

Author

Altug Alkan, Jul 30 2021

Keywords

Examples

			a(8) = 2 because p(8) = 22 divides p(8^2) = 1741630.
		

Crossrefs

Cf. A000041.

Programs

  • Mathematica
    a[n_] := Module[{k = 2, p = PartitionsP[n]}, While[! Divisible[PartitionsP[n^k], p], k++]; k]; Array[a, 9] (* Amiram Eldar, Aug 04 2021 *)
  • PARI
    a(n)=my(t=2); while(numbpart(n^t)%numbpart(n), t++); t