OFFSET
1,3
COMMENTS
Old name was "Extended 'previous prime' version 2".
This is the same as A151799 if n >= 3 and falls back to 1, if no prime smaller than n exists.
a(n+1) is the largest number k such that A007955(k) <= n, where A007955 is the product of divisors. - Jaroslav Krizek, Apr 01 2010
For every k >= 1, the equation n - a(n) = k has infinitely many solutions. - Bernard Schott, Mar 05 2019
REFERENCES
P. Tauvel, Exercices d'Algèbre Générale et d'Arithmétique, Dunod, 2004, Exercice 18 p. 204.
LINKS
Enrique Pérez Herrero, Table of n, a(n) for n = 1..5000
FORMULA
For n > 1, a(n) < n. If p is prime, a(p+1) = p. - Bernard Schott, Mar 05 2019
MATHEMATICA
A136548[1]:= 1; A136548[2]:= 1; A136548[n_]:= Prime[PrimePi[n-1]]; Array[A136548, 50] (* Enrique Pérez Herrero, Jul 23 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Mar 26 2008
EXTENSIONS
Definition clarified by N. J. A. Sloane, Mar 14 2019 based on a suggestion from Jaroslav Krizek, Mar 01 2010.
STATUS
approved