OFFSET
1,2
COMMENTS
The cardinality of the set of subsets in a multiset excluding empty subsets.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
EXAMPLE
3 = (2^2-1), 7 = (2^3-1), 9 = (2^2-1)^2, 81 = (2^2-1)^4, 1070599167 = (2^10-1)^3.
MATHEMATICA
mx = 10^6; Union@ Flatten@ {1, #^Range[Log[#, mx]] & /@ (2^ Range[2, Log2@ mx] -1)} (* Giovanni Resta, Mar 08 2017 *)
PROG
(PARI) ismn(n) = n++; n == 2^valuation(n, 2);
isok(n) = ismn(n) || (ispower(n, , &m) && ismn(m)); \\ Michel Marcus, Feb 18 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Andrew Ivashenko, Feb 18 2017
EXTENSIONS
More terms from Michel Marcus, Feb 18 2017
STATUS
approved