OFFSET
1,1
COMMENTS
Conjecture: If b(1)>=4 is an integer and b(k+1)=a(b(k)) for k=1,2,3,..., then b(n)=4 for some n>0.
This conjecture has the same flavor as the Collatz conjecture.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
G. Melfi, On two conjectures about practical numbers, J. Number Theory 56 (1996) 205-210 [MR96i:11106].
EXAMPLE
a(20)=12 since 2(20+1)=24+18 with 24 and 18 both practical.
MATHEMATICA
f[n_]:=f[n]=FactorInteger[n]
Pow[n_, i_]:=Pow[n, i]=Part[Part[f[n], i], 1]^(Part[Part[f[n], i], 2])
Con[n_]:=Con[n]=Sum[If[Part[Part[f[n], s+1], 1]<=DivisorSigma[1, Product[Pow[n, i], {i, 1, s}]]+1, 0, 1], {s, 1, Length[f[n]]-1}]
pr[n_]:=pr[n]=n>0&&(n<3||Mod[n, 2]+Con[n]==0)
Do[Do[If[pr[2k]==True&&pr[2n+2-2k]==True, Print[n, " ", 2k/(1+Mod[k-1, 2])]; Goto[aa]], {k, Ceiling[(n+1)/2], n}];
Label[aa]; Continue, {n, 1, 100}]
PROG
(PARI) A198472(n) = forstep(q=n+++bittest(n, 0), 9e9, 2, is_A005153(q) && is_A005153(2*n-q) && return(if(q%4, q, q\2))) \\ M. F. Hasler, Feb 27 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Feb 27 2013
STATUS
approved