![]() |
|
|
#1 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
160658 Posts |
Here's a no doubt not-terribly-difficult problem, but it's not exactly trivial. I have little interest in actually solving it, so here it is for the forum's
enjoyment: Given a target n and a count c, how many different ways are there for `c` integers to sum to `n`? For instance, with n=11 and c=4, the total is eleven: Code:
(1, 1, 1, 8) (1, 1, 2, 7) (1, 1, 3, 6) (1, 1, 4, 5) (1, 2, 2, 6) (1, 2, 3, 5) (1, 2, 4, 4) (1, 3, 3, 4) (2, 2, 2, 5) (2, 2, 3, 4) (2, 3, 3, 3) Last fiddled with by Dubslow on 2015-11-28 at 10:57 |
|
|
|
|
|
#2 |
|
Jun 2003
22×3×421 Posts |
|
|
|
|
|
|
#3 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
Quote:
(rather, my google queries into the matter were ignorant of the extant terminology)
Last fiddled with by Dubslow on 2015-11-28 at 11:54 |
|
|
|
|
|
|
#4 | |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
22·1,549 Posts |
Quote:
So your puzzle in return it is discover why it has in infinite number of solutions. |
|
|
|
|
|
|
#5 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
|
|
|
|
|
|
#6 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
2·3·7·233 Posts |
|
|
|
|
|
|
#7 |
|
Romulan Interpreter
Jun 2011
Thailand
100101100010112 Posts |
[deleted]
sorry, ignore this, I didn't read to the end Last fiddled with by LaurV on 2015-11-28 at 16:14 |
|
|
|
|
|
#8 |
|
May 2004
New York City
2×29×73 Posts |
|
|
|
|
|
|
#9 | |
|
May 2004
New York City
2×29×73 Posts |
Quote:
The axiomatic approach begins with 0 and a successor rule. By starting with 0, instead of 1, it's easier to define the arithmetic operations. |
|
|
|
|
|
|
#10 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
2·3·7·233 Posts |
The way that I was taught "natural numbers" and "whole numbers" were differentiated by 0 being in one and not the other. Trying to reconfirm before posting led to some confusion. The way I recall:
[[[[[whole]natural]integers]rational]+[irrational]]=[real] [imaginary] |
|
|
|
|
|
#11 |
|
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Small but nontrivial prime puzzle | mart_r | Puzzles | 85 | 2018-02-11 18:55 |
| SQL puzzle | Prime95 | Programming | 1 | 2017-05-13 16:01 |
| Sieving with powers of small primes in the Small Prime variation of the Quadratic Sieve | mickfrancis | Factoring | 2 | 2016-05-06 08:13 |
| now HERE'S a puzzle. | Orgasmic Troll | Puzzles | 6 | 2005-12-08 07:19 |
| Small set of 12 | GP2 | Completed Missions | 2 | 2003-10-03 18:30 |