OFFSET
1,2
COMMENTS
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
J. Arias de Reyna, Complejidad de los numeros naturales, Gaceta de la Real Sociedad Matematica Espanola, 3, (2000), 230-250. (In Spanish.)
J. Arias de Reyna, Complejidad de los numeros naturales, Gaceta de la Real Sociedad Matematica Espanola, 3, (2000), 230-250. (In Spanish.) [Cached copy, with permission]
J. Arias de Reyna, Complexity of natural numbers, arXiv:2111.03345 [math.NT], 2021.
MATHEMATICA
a[1]=1; a[p_?PrimeQ] := 1+a[p-1]; a[n_] := a[n] = With[{d=Divisors[n][[2]] }, a[d] + a[n/d]]; Array[a, 100] (* Jean-François Alcover, Feb 26 2016 *)
PROG
(Haskell)
import Data.List (genericIndex)
a061373 1 = 1
a061373 n = genericIndex a061373_list (n-1)
a061373_list = 1 : f 2 where
f x | x == spf = 1 + a061373 (spf - 1) : f (x + 1)
| otherwise = a061373 spf + a061373 (x `div` spf) : f (x + 1)
where spf = a020639 x
-- Reinhard Zumkeller, Apr 09 2012
CROSSREFS
KEYWORD
easy,nice,nonn
AUTHOR
Juan Arias-de-Reyna, Jun 08 2001
STATUS
approved