OFFSET
1,1
COMMENTS
Any nonzero number other than 4 or a prime could be chosen for a(1) so as to generate a nontrivial sequence (because A056240(r)=r for r=4 or a prime). In this sequence a(1) is set to 6 because it is the smallest composite number which is the sum of prime divisors of a greater number (8), and is therefore the smallest starting value for a non-stationary sequence of this kind.
EXAMPLE
MATHEMATICA
With[{s = Array[Total@ Flatten[ConstantArray[#1, #2] & @@@ FactorInteger@ #] &, 10^6]}, Nest[Append[#, First@ FirstPosition[s, #[[-1]] ]] &, {6}, 11]] (* Michael De Vlieger, Aug 25 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
David James Sycamore, Aug 25 2018
EXTENSIONS
a(13)-a(17) from Giovanni Resta, Aug 28 2018
Terms a(18) onward from Max Alekseyev, Sep 20 2024
STATUS
approved