OFFSET
1,6
COMMENTS
It appears that the sequence of n for which a(n)>a(n-1) has a large overlap with A175904.
FORMULA
a(n) = A270970(n) - n. - Michel Marcus, Mar 27 2016
EXAMPLE
For n=3, the subsets of {1,2,3} with at least two elements have (sum,LCM) as follows: {1,2}->(3,2), {1,3}->(4,3), {2,3}->(5,6), {1,2,3}->(6,6). Only the last satisfies sum=LCM, so a(3)=1.
MATHEMATICA
Table[Length[Transpose@ {Total /@ #, LCM @@@ #} /. {a_, b_} /; a != b -> Nothing &@ Rest[Subsets[Range@ n] /. {_} -> Nothing]], {n, 2, 22}] (* Michael De Vlieger, Mar 24 2016 *)
PROG
(PARI) a(n) = {nb = 0; S = vector(n, k, k); for (i = 0, 2^n - 1, ss = vecextract(S, i); if (vecsum(ss) == lcm(ss), nb++); ); nb - n; } \\ Michel Marcus, Mar 26 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Logan J. Kleinwaks, Mar 24 2016
EXTENSIONS
More terms added using A270970 by Jinyuan Wang, May 02 2020
STATUS
approved