• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:38
CEST 11:38
KST 18:38
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall15HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Esports World Cup 2025 - Brackets Revealed14Weekly Cups (July 7-13): Classic continues to roll8Team TLMC #5 - Submission extension3Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
RSL Revival patreon money discussion thread Who will win EWC 2025? Server Blocker Weekly Cups (July 7-13): Classic continues to roll The GOAT ranking of GOAT rankings
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event Sea Duckling Open (Global, Bronze-Diamond) RSL: Revival, a new crowdfunded tournament series $5,100+ SEL Season 2 Championship (SC: Evo) WardiTV Mondays
Strategy
How did i lose this ZvP, whats the proper response
Custom Maps
External Content
Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome
Brood War
General
Flash Announces (and Retracts) Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ [ASL19] Finals Recap: Standing Tall BW General Discussion Help: rep cant save
Tourneys
Cosmonarchy Pro Showmatches CSL Xiamen International Invitational [Megathread] Daily Proleagues [BSL20] Non-Korean Championship 4x BSL + 4x China
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread CCLP - Command & Conquer League Project The PlayStation 5
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2025!
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Ping To Win? Pings And Their…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 707 users

Math Problem

Blogs > motbob
Post a Reply
Normal
motbob
Profile Blog Joined July 2008
United States12546 Posts
Last Edited: 2009-02-06 15:06:49
February 06 2009 13:49 GMT
#1
So I've got this set "S" of non-negative integers. I can add two numbers from this set "S" in order to get every integer 0-100 (I can add numbers to themselves, for example 9+9 to get 18). For example, my set "S" has both 99 and 1, so the number 100 is covered. So is the number 98 since my set has the numbers 89 and 9. My set has 19 elements in it. Is there a set that I can come up with that has fewer elements?

My set:
+ Show Spoiler +
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 29, 39, 49, 59, 69, 79, 89, 99



*
ModeratorGood content always wins.
ninjafetus
Profile Joined December 2008
United States231 Posts
February 06 2009 14:15 GMT
#2
Hmmm... interesting question! That set seems minimal to me, but I'm note sure how to show it. I'll think about it.
minus_human
Profile Blog Joined November 2006
4784 Posts
February 06 2009 14:50 GMT
#3
I don't understand your problem
motbob
Profile Blog Joined July 2008
United States12546 Posts
February 06 2009 15:07 GMT
#4
On February 06 2009 23:50 minus_human wrote:
I don't understand your problem

OK, I tried to clarify it.
ModeratorGood content always wins.
o3.power91
Profile Blog Joined November 2007
Bahrain5288 Posts
Last Edited: 2009-02-06 15:27:01
February 06 2009 15:26 GMT
#5
hmm... interesting question.

edit: i just noticed i have the exact same comment as the first reply XD
Saracen
Profile Blog Joined December 2007
United States5139 Posts
February 06 2009 15:49 GMT
#6
no
my set:
S{0,1,2,3,4,5,6,7,8,9}
and 10n+a from n=1 to n=9 where a is an integer between -1 and 10
FaCE_1
Profile Blog Joined December 2006
Canada6172 Posts
February 06 2009 16:20 GMT
#7
^ I don't think this fallow the ops rules O_o
n_n
Saracen
Profile Blog Joined December 2007
United States5139 Posts
February 06 2009 16:28 GMT
#8
how so...
Divinek
Profile Blog Joined November 2006
Canada4045 Posts
Last Edited: 2009-02-06 16:35:27
February 06 2009 16:30 GMT
#9
On February 07 2009 01:28 Saracen wrote:
how so...


because his set has to be able to add every number to get 1-100, not multiply it afterwards to do so.

er right, you need 0 for 1, duh.
Never attribute to malice that which can be adequately explained by stupidity.
Oh goodness me, FOX tv where do you get your sight? Can't you keep track, the puck is black. That's why the ice is white.
huameng
Profile Blog Joined April 2007
United States1133 Posts
February 06 2009 16:34 GMT
#10
Yeah, he needs the 0 to be able to make 1, 19, 29, etc.

To the OP: I think you have the correct solution
skating
Saracen
Profile Blog Joined December 2007
United States5139 Posts
February 06 2009 16:35 GMT
#11
On February 07 2009 01:30 Divinek wrote:
Show nested quote +
On February 07 2009 01:28 Saracen wrote:
how so...


because his set has to be able to add every number to get 1-100, not multiply it afterwards to do so.

also op why do you have 0 in your set, is that required?

which is what my set does
{0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90}
or
{0,1,2,3,4,5,6,7,8,9,11,21,31,41,51,61,71,81,91}
or
{0,1,2,3,4,5,6,7,8,9,12,22,32,42,52,62,72,82,92}
...
and yes, 0 is required
LTT
Profile Blog Joined March 2003
Shakuras1095 Posts
Last Edited: 2009-02-06 16:42:23
February 06 2009 16:41 GMT
#12
There is more than 1 solution. You can also get it with

0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 53, 62, 71, 80, 89, 98
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 29, 39, 49, 59, 69, 79, 89, 99
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 21, 32, 43, 54, 65, 76, 87, 98
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 23, 35, 47, 59, 71, 83, 95
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 25, 38, 51, 64, 77, 90

There are also variations of those. Take his example using 0-9 as his "base".
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90

All of the above have 19 terms.

The total possible summations for a set S(n) containing n elements is C(n,2) + n. From this we can gather tht the absolute minimum of terms to even get 100 summations is 14.

C(14,2) + 14 = 105

You will need at least 14 elements to even have a chance of covering 0-100. Whether any below 19 elements can actually cover...dunno.
blapsd
Profile Blog Joined January 2009
England121 Posts
Last Edited: 2009-02-06 16:54:13
February 06 2009 16:42 GMT
#13
Ok, look at how many numbers you get in your set:

First im going to split the set up into 2 subsets the 1st subset consists of the consecutive numbers 0 - 9 and the second subset consists of the rest.

We can change the number of integers in our first set and this directly affects how many integers we need in our second. I'm going to call the number we go up to in our first set x (in your case this is 9)

ok now lets count how many numbers we have

x + 1 in the first subset (the +1 is because of the 0)

Now we need to make 101 numbers in total (101 because of the 0 remember) and we now have 101 - x numbers left to make. Now we need a number in our second subset for every x+1th number from x to 100.....for example you needed a number every 9+1 times in your 2nd subset.

Now we add up the total number of integers we have:

x+1 (from the first subset) + (100 - x)/(x + 1) (from the second subset)

now form the equation :

y = x + 1 + (100-x)/(x+1) This is the equation for the number of integers in our set. we need to MINIMISE this

To do this we simply differentiate to get (TIP: USE THE QUOTIENT RULE)

dy/dx = 1 + (-101)/((x+1)^2)

put this equal to zero and you finally get x is around 9.05 rounded up a little.

This therefore means for the number of integers in your set to be minimum you need x = 9

NOTE: we are only working in integers and you are allowed to round down due to there being remainders when you divide 101-x by x+1. If you're not convinced just test it for x = 9 and x=10 because i've proved the answer lies between 9 and 10

so you were right x = 9 or putting it back into the equation for y, y = 19.1 (which we are allowed to round down to the nearest integer also) so the minimum number of integers is 19.

which means your set is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 29, 39, 49, 59, 69, 79, 89, 99

also note theres other sets that allow 19 numbers but no sets that contain less than 19

Hope that wasnt too hard to follow.
Saracen
Profile Blog Joined December 2007
United States5139 Posts
February 06 2009 16:46 GMT
#14
On February 07 2009 01:41 LTT wrote:
There is more than 1 solution. You can also get it with

0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 53, 62, 71, 80, 89, 98
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 29, 39, 49, 59, 69, 79, 89, 99
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 21, 32, 43, 54, 65, 76, 87, 98
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 23, 35, 47, 59, 71, 83, 95
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 25, 38, 51, 64, 77, 90

no you can't
unless you can repeat numbers, but then you wouldn't need 0
motbob
Profile Blog Joined July 2008
United States12546 Posts
February 06 2009 16:54 GMT
#15
Thanks everyone. I think if no one came up with a set of fewer elements then there probably isn't one. I knew about the other solutions using 19 elements, but I wasn't sure if there was some crazy outside-the-box way of doing it that I hadn't thought of.
ModeratorGood content always wins.
motbob
Profile Blog Joined July 2008
United States12546 Posts
February 06 2009 16:55 GMT
#16
On February 07 2009 01:46 Saracen wrote:
Show nested quote +
On February 07 2009 01:41 LTT wrote:
There is more than 1 solution. You can also get it with

0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 53, 62, 71, 80, 89, 98
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 29, 39, 49, 59, 69, 79, 89, 99
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 21, 32, 43, 54, 65, 76, 87, 98
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 23, 35, 47, 59, 71, 83, 95
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 25, 38, 51, 64, 77, 90

no you can't
unless you can repeat numbers, but then you wouldn't need 0

One, you can repeat numbers (it's in the OP) and two, you need zero for 1 (0+1).
ModeratorGood content always wins.
Saracen
Profile Blog Joined December 2007
United States5139 Posts
Last Edited: 2009-02-06 16:58:27
February 06 2009 16:55 GMT
#17
Cooler constraint: pick three numbers from the set to add up to any integer between 1 and 100
the numbers don't have to be non-negative

!

On February 07 2009 01:55 motbob wrote:
Show nested quote +
On February 07 2009 01:46 Saracen wrote:
On February 07 2009 01:41 LTT wrote:
There is more than 1 solution. You can also get it with

0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 53, 62, 71, 80, 89, 98
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 29, 39, 49, 59, 69, 79, 89, 99
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 21, 32, 43, 54, 65, 76, 87, 98
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 23, 35, 47, 59, 71, 83, 95
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 25, 38, 51, 64, 77, 90

no you can't
unless you can repeat numbers, but then you wouldn't need 0

One, you can repeat numbers (it's in the OP) and two, you need zero for 1 (0+1).


missed that sorry :\
StRyKeR
Profile Blog Joined January 2006
United States1739 Posts
Last Edited: 2009-02-06 17:01:50
February 06 2009 17:00 GMT
#18
On February 07 2009 01:42 blapsd wrote:
Ok, look at how many numbers you get in your set:

First im going to split the set up into 2 subsets the 1st subset consists of the consecutive numbers 0 - 9 and the second subset consists of the rest.

We can change the number of integers in our first set and this directly affects how many integers we need in our second. I'm going to call the number we go up to in our first set x (in your case this is 9)

ok now lets count how many numbers we have

x + 1 in the first subset (the +1 is because of the 0)

Now we need to make 101 numbers in total (101 because of the 0 remember) and we now have 101 - x numbers left to make.


This isn't true because the (x+1) numbers in the first subset account for more than x+1 numbers from 0 to 101. For example, having {0, 1, 4, 6} hits the set {0, 1, 2, 4, 5, 6, 7, 8, 10, 12}, since you are allowed to double numbers and also take pairs of numbers. In this case, while you have 4 elements from 0 to 9, you actually need to cover only 101 - 10 = 91 numbers now.

There are issues with the rest of your argument because of this fact -- a set of numbers can generate more than its own size.
Ars longa, vita brevis, principia aeturna.
StRyKeR
Profile Blog Joined January 2006
United States1739 Posts
February 06 2009 17:03 GMT
#19
You can show that you need at least 14, but it's still up in the air as to whether 19 is minimal.
Ars longa, vita brevis, principia aeturna.
blapsd
Profile Blog Joined January 2009
England121 Posts
February 06 2009 17:08 GMT
#20
+ Show Spoiler +
This isn't true because the (x+1) numbers in the first subset account for more than x+1 numbers from 0 to 101. For example, having {0, 1, 4, 6} hits the set {0, 1, 2, 4, 5, 6, 7, 8, 10, 12}, since you are allowed to double numbers and also take pairs of numbers.

Now we need a number in our second subset for every x+1th number from x to 100.....for example you needed a number every 9+1 times in your 2nd subset.

There are other issues with the rest of the argument because of this fact -- a set of numbers can generate more than its own size.


yes but remember you are only allowed to make one addition. If you doubled 6 to get 12 for example, you could never add 12 to any other numbers since we've used our 1 addition already. The first subset needs to be a list of numbers you can still add to the others in the 2nd subset, and hence cant be made by doubling or adding.

minus_human
Profile Blog Joined November 2006
4784 Posts
Last Edited: 2009-02-06 21:31:49
February 06 2009 21:31 GMT
#21
On February 07 2009 00:07 motbob wrote:
Show nested quote +
On February 06 2009 23:50 minus_human wrote:
I don't understand your problem

OK, I tried to clarify it.


Thanks, I get it now

but I think it's covered by now, darn you TL math nerds
ninjafetus
Profile Joined December 2008
United States231 Posts
February 07 2009 00:17 GMT
#22
I'm 99% sure 19 is minimal. I was writing a big diagonal set argument, but I realized that it's not completely general and didn't want to bother it it wasn't completely correct. I'm pretty sure you're good with 19.
Normal
Please log in or register to reply.
Live Events Refresh
Next event in 2h 22m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 254
StarCraft: Brood War
Stork 448
Pusan 383
Larva 234
Leta 222
firebathero 220
Dewaltoss 174
TY 115
ToSsGirL 93
Rush 91
Sharp 72
[ Show more ]
zelot 54
Aegong 53
Backho 29
Sacsri 28
ajuk12(nOOB) 14
Dota 2
Gorgc922
XcaliburYe378
Fuzer 219
League of Legends
JimRising 340
Counter-Strike
shoxiejesuss355
Super Smash Bros
Westballz35
Other Games
summit1g9109
ceh9495
SortOf182
Trikslyr23
DeMusliM1
Organizations
Other Games
gamesdonequick2541
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• LUISG 13
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2129
League of Legends
• Stunt647
Upcoming Events
Epic.LAN
2h 22m
Big Brain Bouts
6h 22m
sebesdes vs SpeCial
Harstem vs YoungYakov
GgMaChine vs uThermal
CranKy Ducklings
1d
Epic.LAN
1d 2h
CSO Contender
1d 7h
BSL20 Non-Korean Champi…
1d 8h
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
Sparkling Tuna Cup
2 days
Online Event
2 days
BSL20 Non-Korean Champi…
2 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Esports World Cup
4 days
ByuN vs Astrea
Lambo vs HeRoMaRinE
Clem vs TBD
Solar vs Zoun
SHIN vs Reynor
Maru vs TriGGeR
herO vs Lancer
Cure vs ShoWTimE
[ Show More ]
Esports World Cup
5 days
Esports World Cup
6 days
Liquipedia Results

Completed

JPL Season 2
RSL Revival: Season 1
Murky Cup #2

Ongoing

BSL 2v2 Season 3
Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
CSL Xiamen Invitational
CSL Xiamen Invitational: ShowMatche
Championship of Russia 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25

Upcoming

2025 ACS Season 2
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
K-Championship
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.