OFFSET
1,3
EXAMPLE
a(32) = 24 = 3*2^3, as 32 = 2^3 + 24.
MATHEMATICA
smooth3Q[n_] := n == 2^IntegerExponent[n, 2]*3^IntegerExponent[n, 3];
a[n_] := Module[{m}, For[m = n, m >= 1, m--, If[smooth3Q[m], If[smooth3Q[n - m], Return[m]]]]; 0];
Array[a, 77] (* Jean-François Alcover, Oct 17 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Mar 19 2003
STATUS
approved