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.

A372228 a(n) is the largest prime factor of n^n + n.

This page as a plain text file.
%I A372228 #19 Oct 29 2024 08:28:43
%S A372228 2,3,5,13,313,101,181,5419,21523361,52579,212601841,57154490053,
%T A372228 815702161,100621,4454215139669,4562284561,52548582913,
%U A372228 1895634885375961,211573,2272727294381,415710882920521,9299179,1853387306082786629,22496867303759173834520497
%N A372228 a(n) is the largest prime factor of n^n + n.
%H A372228 Amiram Eldar, <a href="/A372228/b372228.txt">Table of n, a(n) for n = 1..116</a>
%F A372228 a(n) = A006530(A066068(n)).
%t A372228 Table[f = FactorInteger[n^n + n]; f[[Length[f]]][[1]], {n, 1, 25}] (* _Vaclav Kotesovec_, Apr 26 2024 *)
%o A372228 (Python)
%o A372228 from sympy import primefactors
%o A372228 def A372228(n): return max(max(primefactors(n),default=1),max(primefactors(n**(n-1)+1))) # _Chai Wah Wu_, Apr 27 2024
%Y A372228 Cf. A066068, A006530, A006486, A007571, A372229.
%K A372228 nonn
%O A372228 1,1
%A A372228 _Tyler Busby_, Apr 23 2024