OFFSET
6,1
COMMENTS
a(n) is defined for integers n >= 6.
LINKS
Lei Zhou, Table of n, a(n) for n = 6..10000
EXAMPLE
n=6, 2n=12=3+3*3, Max[3,3,3]=3, so a(6)=3;
n=7, 2n=12=5+3*3, Max[5,3,3]=5, so a(7)=5;
..
n=10, 2n=20=11+3*3=5+5*3, Max[11,3,3]=11, Max[5,5,3]=5, Min[11,5]=5, so a(10)=5.
MATHEMATICA
Table[p = 2; r = n; While[p = NextPrime[p]; m = n - p; m >= 9, f = Transpose[FactorInteger[m]]; If[(Total[f[[2]]] == 2)&&(f[[1, 1]]>2), s = Max[Max[f[[1]]], p]; If[r > s, r = s]]]; r, {n, 12, 150, 2}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Lei Zhou, Feb 20 2014
STATUS
approved