A341578 a(n) is the minimum number of total votes needed for one party to win if there are n^2 voters divided into equal districts.
1, 3, 4, 8, 9, 14, 16, 24, 25, 33, 36, 45, 49, 60, 64, 80, 81, 95, 100, 117, 121, 138, 144, 165, 169, 189, 196, 224, 225, 247, 256, 288, 289, 315, 324, 350, 361, 390, 400, 429, 441, 473, 484, 528, 529, 564, 576, 624, 625, 663, 676, 728, 729, 770, 784, 825, 841, 885, 900, 943
Offset: 1
Keywords
Examples
For a(2), divisors of 2^2 are 1, 2, 4: d=1: (floor(1/2)+1)*(floor(2^2/(2*1))+1) = 1*3 = 3 d=3: (floor(2/2)+1)*(floor(2^2/(2*2))+1) = 2*2 = 4 d=9: (floor(4/2)+1)*(floor(2^2/(2*4))+1) = 3*1 = 3 OR since n is even, ((2/2)+1)^2-1=3 Party A only needs 3 cells out of 4 to win a majority of districts. For a(6), divisors of 6^2 are 1, 2, 3, 4, 6, 9, 12, 18, 36: By symmetry we can ignore d = 9, 12, 18 and 36; d=1: (floor(1/2)+1)*(floor(6^2/(2*1))+1) = 1*19 = 19 d=2: (floor(2/2)+1)*(floor(6^2/(2*2))+1) = 2*10 = 20 d=3: (floor(3/2)+1)*(floor(6^2/(2*3))+1) = 2*7 = 14 d=4: (floor(4/2)+1)*(floor(6^2/(2*4))+1) = 3*5 = 15 d=6: (floor(6/2)+1)*(floor(6^2/(2*6))+1) = 4*4 = 16 OR since n is even, ((6/2)+1)^2-1=15 Party A only needs 14 cells out of 36 to win a majority of districts.
Links
- N. J. A. Sloane, Table of n, a(n) for n = 1..5000
- N. J. A. Sloane, How to use Gerrymandering to win with only 14 votes when you opponent has 22: (1) Locations of voters
- N. J. A. Sloane, How to use Gerrymandering to win with only 14 votes when you opponent has 22: (2) Make three districts with 12 voters in each, drawn so that your 14 votes win 2 out of the 3 districts
- N. J. A. Sloane, Exciting Number Sequences (video of talk), Mar 05 2021.
- N. J. A. Sloane, The On-Line Encyclopedia of Integer Sequences: An illustrated guide with many unsolved problems, Guest Lecture given in Doron Zeilberger's Experimental Mathematics Math640 Class, Rutgers University, Spring Semester, Apr 28 2022: Slides; Slides (an alternative source).
- N. J. A. Sloane, "A Handbook of Integer Sequences" Fifty Years Later, arXiv:2301.03149 [math.NT], 2023, p. 21.
Crossrefs
Programs
-
Mathematica
Table[Min[Table[(Floor[d/2]+1)*(Floor[n^2/(2*d)]+1),{d,Divisors[n^2]}],If[EvenQ[n],(n/2+1)^2-1,Infinity]],{n,60}](* Stefano Spezia, Feb 15 2021 *)
-
Python
from sympy import divisors def A341578(n): c = min((d//2+1)*(n**2//(2*d)+1) for d in divisors(n**2,generator=True) if d<=n) return c if n % 2 else min(c,(n//2+1)**2-1) # Chai Wah Wu, Mar 05 2021
Formula
a(n) is the minimum value of {(floor(d/2)+1)*(floor(n^2/(2*d))+1) over all divisors d of n^2 AND (n/2+1)^2-1, if n is even}.
Extensions
Entry revised by N. J. A. Sloane, Feb 26 2021.
Comments