Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

## #1 2013-03-26 22:04:26

Agnishom
Real Member

Offline

### The subset dilemma

Determine the number of subsets of A={1,2,…,10} whose sum of elements are greater than or equal to 28.

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #2 2013-03-26 22:17:27

bobbym

Online

### Re: The subset dilemma

Hi;

There is a generating function solution to that one.

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #3 2013-03-26 22:18:34

Agnishom
Real Member

Offline

### Re: The subset dilemma

Is it like multiplying two functions and then checking the coefficient of it....?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #4 2013-03-26 22:31:24

bobbym

Online

### Re: The subset dilemma

Hi;

I do not know yet because I am not done with the other problems. Then I can concentrate on this one.

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #5 2013-03-26 22:32:14

Agnishom
Real Member

Offline

### Re: The subset dilemma

Maybe the original polynomial is x + x^2 + x^3 + ... + x^10

Then what to do with that?

Last edited by Agnishom (2013-03-26 22:40:54)

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #6 2013-03-26 22:39:32

bobbym

Online

### Re: The subset dilemma

We can answer quickly with 512.

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #7 2013-03-26 22:46:17

Agnishom
Real Member

Offline

### Re: The subset dilemma

I know some fools who are good at math, but they won't tell me how they did it

Only joking... no offense

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #8 2013-03-26 22:55:22

bobbym

Online

### Re: The subset dilemma

I am not offended. I am a fool who is not good at math.

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #9 2013-03-26 23:06:11

Agnishom
Real Member

Offline

### Re: The subset dilemma

Not good?? Then I am worse than worse.

Jokes apart ...... How do you do it?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #10 2013-03-26 23:15:49

bobbym

Online

### Re: The subset dilemma

Do what? Stumble around? It is easy.

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #11 2013-03-26 23:30:45

Agnishom
Real Member

Offline

### Re: The subset dilemma

Stumble around?

I mean, how did you do the problem?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #12 2013-03-26 23:41:05

bobbym

Online

### Re: The subset dilemma

I am just intuitively guessing about the 512. There are 2^10 sunsets of those numbers. One to 10 sum to 55. 28 to 55 is half the numbers so it is a good guess about 1024 / 2 = 512.

I programmed it and that is the answer. Now I need a math way.

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #13 2013-03-26 23:41:55

Agnishom
Real Member

Offline

### Re: The subset dilemma

May I see your program?

Sunsets? Sounds nice

Last edited by Agnishom (2013-03-26 23:44:51)

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #14 2013-03-26 23:45:42

bobbym

Online

### Re: The subset dilemma

#### Code:

`Select[Total[#]&/@Subsets[Range[10]],#>27&]//Length`

Returns 512

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #15 2013-03-26 23:56:53

Agnishom
Real Member

Offline

### Re: The subset dilemma

!!!!!!!!!

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #16 2013-03-27 00:03:34

bobbym

Online

### Re: The subset dilemma

It is a little strange to see a functional style of programming at first.

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #17 2013-03-27 00:12:00

Agnishom
Real Member

Offline

### Re: The subset dilemma

Yep veryyy strange
Getting a little clear though

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #18 2013-03-27 00:15:01

bobbym

Online

### Re: The subset dilemma

You can try it at Alpha.

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #19 2013-03-27 00:56:07

Agnishom
Real Member

Offline

### Re: The subset dilemma

The website?

Last edited by Agnishom (2013-03-27 00:56:36)

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #20 2013-03-27 01:02:37

bobbym

Online

### Re: The subset dilemma

Yes, they let you use Mathematica there.

In mathematics, you don't understand things. You just get used to them.
Some cause happiness wherever they go; others, whenever they go.
If you can not overcome with talent...overcome with effort.

## #21 2013-03-27 01:13:18

anonimnystefy
Real Member

Offline

### Re: The subset dilemma

It is half because if a set's sum of elements is >=28, then the sum of elements of its complement is <28. That means that there are as many subsets of the given set which have the element sum >=28 as there are with the element sum <28.

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #22 2013-03-27 02:58:06

Agnishom
Real Member

Offline

### Re: The subset dilemma

Hmm...

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #23 2013-03-27 03:39:15

anonimnystefy
Real Member

Offline

### Re: The subset dilemma

What is it?

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment

## #24 2013-03-27 03:54:51

Agnishom
Real Member

Offline

### Re: The subset dilemma

I mean I understood TY

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
'The whole person changes, why can't a habit?' -Alokananda

## #25 2013-03-27 04:10:21

anonimnystefy
Real Member

Offline

### Re: The subset dilemma

You are welcome!

The limit operator is just an excuse for doing something you know you can't.
“It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment