[go: up one dir, main page]

login
Revision History for A316364 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Number of factorizations of n into factors > 1 such that every distinct submultiset of the factors has a different average.
(history; published version)
#9 by N. J. A. Sloane at Sun Sep 23 21:26:30 EDT 2018
STATUS

proposed

approved

#8 by Antti Karttunen at Fri Sep 21 14:58:59 EDT 2018
STATUS

editing

proposed

#7 by Antti Karttunen at Fri Sep 21 14:58:03 EDT 2018
LINKS

Antti Karttunen, <a href="/A316364/b316364.txt">Table of n, a(n) for n = 1..65537</a>

#6 by Antti Karttunen at Fri Sep 21 14:53:48 EDT 2018
DATA

1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 3, 1, 2, 2, 2, 1, 3, 1, 3, 2, 2, 1, 4, 1, 2, 2, 3, 1, 5, 1, 3, 2, 2, 2, 5, 1, 2, 2, 5, 1, 5, 1, 3, 3, 2, 1, 6, 1, 3, 2, 3, 1, 5, 2, 5, 2, 2, 1, 8, 1, 2, 3, 4, 2, 5, 1, 3, 2, 5, 1, 9, 1, 2, 3, 3, 2, 5, 1, 6, 2, 2, 1, 9, 2, 2, 2, 5, 1, 9, 2, 3, 2, 2, 2, 10, 1, 3, 3, 5, 1, 5, 1, 5, 4

PROG

(PARI)

choosebybits(v, m) = { my(s=vector(hammingweight(m)), i=j=1); while(m>0, if(m%2, s[j] = v[i]; j++); i++; m >>= 1); s; };

hasdupavgs(v) = { my(avgs=Map(), k); for(i=1, (2^(#v))-1, k = (vecsum(choosebybits(v, i))/hammingweight(i)); if(mapisdefined(avgs, k), return(i), mapput(avgs, k, i))); (0); };

A316364(n, m=n, facs=List([])) = if(1==n, (0==hasdupavgs(Vec(facs))), my(s=0, newfacs); fordiv(n, d, if((d>1)&&(d<=m), newfacs = List(facs); listput(newfacs, d); s += A316364(n/d, d, newfacs))); (s)); \\ Antti Karttunen, Sep 21 2018

EXTENSIONS

More terms from Antti Karttunen, Sep 21 2018

STATUS

approved

editing

#5 by Susanna Cuyler at Sat Jun 30 20:40:55 EDT 2018
STATUS

proposed

approved

#4 by Gus Wiseman at Sat Jun 30 12:22:25 EDT 2018
STATUS

editing

proposed

#3 by Gus Wiseman at Sat Jun 30 12:21:37 EDT 2018
#2 by Gus Wiseman at Sat Jun 30 11:53:05 EDT 2018
NAME

allocated for Gus WisemanNumber of factorizations of n into factors > 1 such that every distinct submultiset of the factors has a different average.

DATA

1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 3, 1, 2, 2, 2, 1, 3, 1, 3, 2, 2, 1, 4, 1, 2, 2, 3, 1, 5, 1, 3, 2, 2, 2, 5, 1, 2, 2, 5, 1, 5, 1, 3, 3, 2, 1, 6, 1, 3, 2, 3, 1, 5, 2, 5, 2, 2, 1, 8, 1, 2, 3, 4, 2, 5, 1, 3, 2, 5, 1, 9, 1, 2, 3, 3, 2, 5, 1, 6, 2, 2, 1, 9, 2, 2, 2

OFFSET

1,6

COMMENTS

Note that such a factorization is necessarily strict.

EXAMPLE

The a(80) = 6 factorizations are (80), (10*8), (16*5), (20*4), (40*2), (10*4*2).

MATHEMATICA

facs[n_]:=If[n<=1, {{}}, Join@@Table[Map[Prepend[#, d]&, Select[facs[n/d], Min@@#>=d&]], {d, Rest[Divisors[n]]}]];

Table[Length[Select[facs[n], UnsameQ@@Mean/@Union[Subsets[#]]&]], {n, 50}]

KEYWORD

allocated

nonn

AUTHOR

Gus Wiseman, Jun 30 2018

STATUS

approved

editing

#1 by Gus Wiseman at Sat Jun 30 11:53:05 EDT 2018
NAME

allocated for Gus Wiseman

KEYWORD

allocated

STATUS

approved