%I #19 May 23 2024 04:26:36
%S 1,2,3,4,5,6,7,10,11,12,13,14,17,19,20,22,23,26,27,28,29,30,31,34,36,
%T 37,38,41,43,44,46,47,48,52,53,56,58,59,61,62,67,68,70,71,73,74,76,79,
%U 82,83,86,89,92,94,97,101,103,105,106,107,109,110,113,116,118,122,124,127,130
%N Numbers k such that A001055(k) divides k.
%H Amiram Eldar, <a href="/A097296/b097296.txt">Table of n, a(n) for n = 1..10000</a> (terms 1..1000 from Alois P. Heinz)
%H Florian Luca, Anirban Mukhopadhyay and Kotyada Srinivas, <a href="http://arxiv.org/abs/0807.0986">On the Oppenheim's "factorisatio numerorum" function</a>, arXiv:0807.0986 [math.NT], 2008.
%F Luca et al. estimate the density of this sequence (see their Theorem 3).
%F The number of terms that do not exceed x is ~ x/(log(x))^(1+o(1)) (Luca et al., 2008). - _Amiram Eldar_, May 23 2024
%p g:= proc(n, k) option remember; `if`(n>k, 0, 1)+
%p `if`(isprime(n), 0, add(`if`(d>k, 0, g(n/d, d)),
%p d=numtheory[divisors](n) minus {1, n}))
%p end:
%p a:= proc(n) option remember; local k;
%p for k from 1+`if`(n=1, 0, a(n-1))
%p while irem(k, g(k$2))>0 do od; k
%p end:
%p seq(a(n), n=1..100); # _Alois P. Heinz_, May 16 2014
%t g[n_, k_] := g[n, k] = If[n > k, 0, 1] + If[PrimeQ[n], 0, Sum[If[d > k, 0, g[n/d, d]], {d, Divisors[n] // Most // Rest}]]; a[1] = 1; a[n_] := (For[k = 1 + If[n == 1, 0, a[n-1]], Mod[k, g[k, k]] > 0 , k++]; k); Table[a[n], {n, 1, 100}] (* _Jean-François Alcover_, Oct 07 2014, after _Alois P. Heinz_ *)
%Y Cf. A001055.
%K nonn
%O 1,2
%A _N. J. A. Sloane_, Jun 12 2009