Showing posts with label math. Show all posts
Showing posts with label math. Show all posts

Sunday, January 05, 2025

NPR Sunday Puzzle (Jan 5, 2025): Math Fun in 2025

NPR Sunday Puzzle (Jan 5, 2025): Math Fun in 2025
Q: This week's challenge is s a numerical challenge for a change. Take the digits 2, 3, 4, and 5. Arrange them in some way using standard arithmetic operations to make 2,025. Can you do it?
I'm not sure how to clue this... but I'm going to say 865 or 2619.

Edit: One possible order to the digits is 3452. The prime factorization of 3452 is 2² x 863. Adding the unique prime factors gives 865.

Another possible order is 5234. Its prime factorization is 2 x 2617. Adding the prime factors gives 2619.
A: If you just take the prime factorization of 2025, you have the answer.
3⁴ x 5² = 2025, or 5² x 3⁴ = 2025.

Note: You could also just use 25 in place of 5²
(3⁴ x 25 or 25 x 3⁴).
I'm sorry to everyone for the times I had to use my moderator powers.

One comment I hated to delete was the one about the sum of the cubes of the first 9 integers. (1³ + 2³ + 3³ + ... + 8³ + 9³ = 2025). It also included the related fact that the sum of the first 9 integers squared gets the same result (1 + 2 + 3 + ... + 8 + 9)² = 2025.

This is actually true for the first 'n' integers that the sum of the cubes is the square of the sum. (1³ + 2³ + 3³ + ... + n³) = (1 + 2 + 3 + ... + n)².
This is known as Nicomachus's theorem

Sunday, August 18, 2019

NPR Sunday Puzzle (Aug 18, 2019): New Math?

NPR Sunday Puzzle (Aug 18, 2019): New Math?:
Q: If five = four, six = nine, and seven = five, what does twelve equal?
I haven't heard this air yet, and I already have the answer.

Edit: My hint is it's easier to see this puzzle written down than to listen to it. Also, a very similar version of this puzzle aired about ten years ago. The clock was a little bit of a misdirect although you do see clocks with Roman Numerals.
A: Roman Numerals within the spelling of the first number equal the second number.
fIVe = 4
sIX = 9
seVen = 5
tweLVe = 55

Sunday, November 18, 2018

NPR Sunday Puzzle (Nov 18, 2018): Taking the Next Logical Step

NPR Sunday Puzzle (Nov 18, 2018): Taking the Next Logical Step:
Q: In my trip to Europe two weeks ago I visited a friend in Amsterdam who literally has a puzzle on his doormat. Before you walk into his apartment, there's an original puzzle for you to solve. I was able to do it. See if you can. What number comes next in this series: 1, 2, 4, 8, 16, 23, 28?
April 2nd, '07?

Edit: In the OEIS (Online Encyclopedia of Integer Sequences), this is sequence A004207
38 (Add the sum of the digits in the prior number, e.g. 16 + 1 + 6 = 23, 23 + 2 + 3 = 28, etc.)

Sunday, October 22, 2017

NPR Sunday Puzzle (Oct 22, 2017): Two Week Challenge: Move Two Numbers

NPR Sunday Puzzle (Oct 22, 2017): Two Week Challenge: Move Two Numbers:
Q: This is a two-week challenge. Write down the equation:
65 – 43 = 21.
You'll notice that this is not correct. 65 minus 43 equals 22, not 21. The object is to move exactly two of the digits to create a correct equation. There is no trick in the puzzle's wording. In the answer, the minus and equal signs do not move.
Keep it up; you still have another week to solve this.

Edit: My hint last week was "I used to be an advocate...". I guess you could say if I'm no longer a proponent, I must be an ex-ponent. :) This week's clue is a hint to raise the numbers up.
A: 65 - 4³ = 1² --> 65 - 64 = 1

Sunday, October 15, 2017

NPR Sunday Puzzle (Oct 15, 2017): Two Week Challenge: Move Two Numbers

NPR Sunday Puzzle (Oct 15, 2017): Two Week Challenge: Move Two Numbers:
Q: This is a two-week challenge. Write down the equation:
65 – 43 = 21.
You'll notice that this is not correct. 65 minus 43 equals 22, not 21. The object is to move exactly two of the digits to create a correct equation. There is no trick in the puzzle's wording. In the answer, the minus and equal signs do not move.
I used to be an advocate of more challenging number/math puzzles. But this one is not worthy of a two-week challenge.

Sunday, January 22, 2017

NPR Sunday Puzzle (Jan 22, 2017): Think of a Number...

NPR Sunday Puzzle (Jan 22, 2017): Think of a Number...:
Q: This week's challenge is unusual. The numbers 5,000, 8,000, and 9,000 share a property that only five integers altogether have. Identify the property and the two other integers that have it.
The hard part isn't figuring out the pattern, it's figuring out how we are supposed to extend it to find integers four and five.

Edit: The title contains each of the vowels (a,e,i,o,u) exactly once. The 4 and 5 in my hint refer to the number of digits in the two other answers.
A: When spelled out in English, the numbers contain the 5 vowels (a, e, i, o, u, but not y) exactly once.
The other two numbers would be 6,010 (six thousand ten) and 10,006 (ten thousand six).

I discounted answers like 80,000 and 90,000 which also contain y and wouldn't preclude 26,000 as an answer.

Sunday, October 16, 2016

NPR Sunday Puzzle (Oct 16, 2016): Five, Four, Three, Two, One, Blast-off!

NPR Sunday Puzzle (Oct 16, 2016): Five, Four, Three, Two, One, Blast-off!:
Q: This is a two-week challenge. Take the digits 5, 4, 3, 2 and 1, in that order. Using those digits and the four arithmetic signs — plus, minus, times and divided by — you can get 1 with the sequence 5 - 4 + 3 - 2 - 1. You can get 2 with the sequence (5 - 4 + 3 - 2) x 1.

The question is ... how many numbers from 1 to 40 can you get using the digits 5, 4, 3, 2, and 1 in that order along with the four arithmetic signs?

You can group digits with parentheses, as in the example. There are no tricks to this, though. It's a straightforward puzzle. How many numbers from 1 to 40 can you get — and, specifically, what number or numbers can you not get? Will Shortz will reveal his solution in two weeks.
Enjoy the two-week math challenge. Feel free to post *how many* numbers you can create, but just not specifics on which ones and with what expressions.

Edit: A bit of a trick here. You can create 39 numbers, but not 39. :)
A: Without resorting to tricks, you can write expressions for all but number 39.

Sunday, May 29, 2016

NPR Sunday Puzzle (May 29, 2016): Game, Set and Match

NPR Sunday Puzzle (May 29, 2016): Game, Set and Match:
Q: What is the most consecutive points a tennis player can lose and still win a best-of-five-sets match? There's no trick. It's a straightforward question. The modern tennis tiebreaker rule does not come into play.
So basically you've got to figure how many sets you can get behind and still be able to catch up?

Edit: You'll be almost ready to lose the 19th consecutive set. Add 57 (hint: Heinz "ketchup") and you have 76 points.
A: 76 points. You start by going up 5 games and 40-love (3 points). Your opponent then needs 5 points to win that game, and 6 more games (24 points) to win the first set 7-5, 24 points to win the second set 6-0 and then another 23 points to be at 5 games and 40-love in the third set

Sunday, November 01, 2015

NPR Sunday Puzzle (Nov 1, 2015): And Three Nines are Twenty

NPR Sunday Puzzle (Nov 1, 2015): And Three Nines are Twenty:
Q: This is one of the "lost" puzzles of Sam Loyd, the great American puzzlemaker from the 19th and early 20th centuries. It's from an old magazine with a Sam Loyd puzzle column. The object is to arrange three 9s to make 20. There is no trick involved. Simply arrange three 9s, using any standard arithmetic signs and symbols, to total 20. How can it be done?
The whole point is there are no tricks involved. So you don't need to flip numbers upside down or involve higher order math like square roots or factorials... at least my solution doesn't need those.

Edit: My hint was point as in decimal point.
A: (9 + 9)/.9 = 20

Sunday, March 29, 2015

NPR Sunday Puzzle (Mar 29, 2015): May I Have Your Number?

NPR Sunday Puzzle (Mar 29, 2015): May I Have Your Number?:
Q: This week's challenge is a little tricky. Given a standard calculator with room for 10 digits, what is the largest whole number you can register on it?
I must have misdialed while trying to phone a friend; I got Ed Asner instead.

Edit: I was trying to contact the mathematician Edward Kasner who, along with 9-year-old nephew Milton came up with the name "googol" for the large number 10¹⁰⁰.
A: If you type 706006 (or 709009) and turn the calculator upside down, it spells gOOgOL (or GOOGOL). That's a 1 followed by 100 zeroes and is bigger than any regular number you could enter using 10 digits.

Sunday, October 19, 2014

NPR Sunday Puzzle (Oct 19, 2014): Time To Flex Those Math Muscles

NPR Sunday Puzzle (Oct 19, 2014): Time To Flex Those Math Muscles:
Q: The following challenge is based on a puzzle from a Martin Gardner book, that may not be well-known. Out of a regular grade school classroom, two students are chosen at random. Both happen to have blue eyes. If the odds are exactly 50-50 that two randomly chosen students in the class will have blue eyes: How many students are in the class?
It's going to be hard to provide hints to the answer this week.

Edit: My hint was "Be" which is the symbol for Berylium, element 4 on the periodic table. While 4 is a technically correct answer (3 blue-eyed children --> 3/4 x 2/3 = 1/2) the intended answer was for a more typical class size.
A: 21 students (15 with blue eyes and 7 without).

The probability the first child has blue eyes is 15/21 or 5/7. Once that child is taken out of consideration, there are 14 children with blue eyes out of 20 so the probability is 7/10. Multiplying that together, we have 5/7 x 7/10 = 5/10 = 1/2

Sunday, August 17, 2014

NPR Sunday Puzzle (Aug 17, 2014): Target Practice

NPR Sunday Puzzle (Aug 17, 2014): Target Practice:
Q: You have a target with six rings, bearing the numbers 16, 17, 23, 24, 39, and 40. How can you score exactly 100 points, by shooting at the target.
Finally a math puzzle, but then it has to be one that isn't very challenging. If you are having trouble, just keep firing arrows; you'll hit it eventually.

Edit: You'll need the full complement of 6 arrows.
A: 16 + 16 + 17 + 17 + 17 + 17 = 100

Thursday, August 22, 2013

NPR Sunday Puzzle (Aug 18, 2013): Roman Numeral XXXVIII

NPR Sunday Puzzle (Aug 18, 2013): Roman Numeral XXXVIII:
Q: The Roman numeral for 38 is XXXVIII. What is special or unusual about this Roman numeral that sets it apart from every other Roman numeral that can be written?
I'm sure I'll figure this out next month when I go to New Jersey.

Edit: If you sort the months alphabetically, September comes last. Similarly, if you sort the state capitals, Trenton comes last
A: XXXVIII sorts last alphabetically.

Thursday, March 07, 2013

NPR Sunday Puzzle (Mar 3, 2013): Dinner Party Musical Chairs

NPR Sunday Puzzle (Mar 3, 2013): Dinner Party Musical Chairs:
Q: Eight people are seated at a circular table. Each person gets up and sits down again — either in the same chair or in the chair immediately to the left or right of the one they were in. How many different ways can the eight people be reseated?
For this puzzle, I think we have to assume each seat position and person is unique. Also, I assume Will wants seating arrangements where each person has their own chair (no sharing). What I don't see, is why the table has to be circular. Couldn't it be square and we could still figure out how to move left or right?

Edit: The first case that might get overlooked is everyone returning to their original seat. The next two cases are where all 8 people move clockwise or counter-clockwise one seat. There can't be any other cycles involving more than two people because that would require someone to move more than one seat, so the remaining cases involve neighboring "couples" swapping seats while others stay still. All that is required is to enumerate the ways to swap couples.
A: There are 49 ways that 8 people could stand up and be reseated (link to PDF containing diagrams). Incidentally, the Online Encyclopedia of Integer Sequences has the answers for various table sizes (A0048162 = 1, 2, 6, 9, 13, 20, 31, 49...) which confirms the answer for 8 people is 49 ways.

Thursday, January 10, 2013

NPR Sunday Puzzle (Jan 6, 2013): Sam Loyd Puzzle (16 boxes, 10 markers)

NPR Sunday Puzzle (Jan 6, 2013): Sam Loyd Puzzle (16 boxes, 10 markers):
16 square gridQ: This challenge appeared in a puzzle column in the Woman's Home Companion in January 1913, exactly 100 years ago. Draw a square that is four boxes by four boxes per side, containing altogether 16 small boxes and 18 lines (across, down and diagonal). There are 10 ways to have four boxes in a line — four horizontal rows, four vertical columns, plus the two long diagonals. There are also eight other shorter diagonals of two or three squares each. The object is to place markers in 10 of the boxes so that as many of the lines as possible have either two or four markers. What is the maximum number of lines that can have either two or four markers, and how do you do it?
Sorry, I needed my full 8 hours of sleep so wasn't able to post earlier, but I'm awake now. No doubt people are going to find this a tricky puzzle, so I added a diagram to help out. Apart from reflections or rotations, I've found a single solution that maximizes the number of lines. Please don't mention how many lines are involved until after the deadline. For those that are mathematically inclined, there are 8008 ways to place 10 markers into 16 squares and, accounting for symmetry, it shouldn't be too hard to brute force the answer. :)

Edit: My hints above were to the number of lines being 16. Being asleep for 8 hours leaves 16 waking hours. The group "No Doubt" has a song called "Sixteen" on their album "Tragic Kingdom". Also the reference to the number of possible arrangements (8008) hinted at 8 horizontal/vertical lines and 8 diagonal lines. Finally, in a post I mentioned the Beatles' song "Taxman" which was parodied by Weird Al as "Pac Man"... I think the answer looks like Pac Man eating a dot.
A: 16 lines in one of 4 symmetric arrangements:
Solution A: 1, 3, 7, 8, 9, 10, 11, 12, 14, 15
Solution B: 2, 3, 5, 6, 7, 8, 9, 10, 14, 16
Solution C: 2, 3, 5, 6, 7, 8, 11, 12, 13, 15
Solution D: 2, 4, 5, 6, 9, 10, 11, 12, 14, 15

Thursday, October 11, 2012

NPR Sunday Puzzle (Oct 7, 2012): Hexagon Diagonals - Count the Triangles

Hexagon Diagonals (less one)NPR Sunday Puzzle (Oct 7, 2012): Hexagon Diagonals - Count the Triangles:

Q: Draw a regular hexagon, and connect every pair of vertices except one. The pair you don't connect are not on opposite sides of the hexagon, but along a shorter diagonal. How many triangles of any size are in this figure?
The diagram in the upper right should help. I've removed one diagonal. It looks like a cool cube, don't you think?

Edit: The words "cool cube" were a double hint. First, the diagram I drew reminded me of the isometric cubes in the Q*Bert video game which was released in 1982. Additionally, if you cube the answer (82^3) you get 551368. I think the result is cool because 55+13=68. As a final clue, in several of my comments, I used the word "lead" which happens to be 82 on the Periodic Table of Elements.
A: 82 Triangles - be sure to watch the video for an explanation of the answer.

Saturday, July 21, 2012

GeekDad Puzzle of the Week: Dog Siblings

Black Labs, mrpattersonsir@flickrGeekDad Puzzle of the Week: Dog Siblings:
Q: A guy with a black lab said that his dog, Selkie, has five brothers and sisters in town. "But I’ve never run into one of them," he said. "I wonder what are the chances of that?"

Imagine that each of the six dogs goes out somewhere an average of once every three days. And imagine that between trails and parks and fields there are 200 places a dog can go, all (let's say...) with equal probability.

If it's been exactly two years — 730 days — since Selkie's owner picked her up from the litter, what are the chances that during this time Selkie would NOT see a doggie sibling?
For extra credit, what are the chances over the same time that any sibling will meet any other sibling?
I've got my answers which I will reveal after the deadline. In the meantime, feel free to solve it and submit your answer to GeekDad.

Edit:  The deadline was Friday, so here is how I went about solving the puzzle.

The key to this puzzle is figure out the chances of dogs not meeting on one day.  From there it is easy to figure out the chance of them not meeting for 730 days. And then if necessary, you can figure out the probability of the opposite case (meeting) by subtracting from 100%.

Part 1 - Selkie doesn't meet a doggie sibling

In order for a dog to be at a specific location, they must be out (with 1/3 probability) and at that specific spot (1/200 probability). That means there is a 1/600 chance of a specific dog being out at a specific location.  Thinking of the negative probability, that means there is a 599/600 chance that a dog is *not* at a specific location.

Selkie will *not* meet another dog on a specific day if,
1) Selkie is at home (2/3)
2) Selkie is out at any location (1/3) and dog 1 is not there (599/600) and dog 2 is not there (599/600) and dog 3 is not there...

In other words, the chance that Selkie doesn't meet any other dog on a specific day is:
2/3 + 1/3 x (599/600)^5 ≈ 99.7231466062%

And the chance that Selkie doesn't meet any dogs for 2 years (730 days) is:
[ 2/3 + 1/3 x (599/600)^5 ]^730 ≈ 13.2148023616%

A: (Part 1) The chance that Selkie does NOT see a doggie sibling is around 13.2148%


Part 2 - Chances that any sibling meets another sibling

This is the much tougher question.  First let's make a table of probabilities of having 0 dogs out, 1 dog out, 2 dogs out, etc.

The chance that 'n' dogs are out on any one day is C(6,n) x (1/3)^n x (2/3)^(6-n).
And given 'n' dogs are out, the chance that they do NOT meet is 200/200 x 199/200 x 198/200 ... (using the number of dogs that are out.)


Thus, the chance that no dogs meet on a single day is around 99.1717389885%
The chance that no dogs meet for 730 days is (99.1717389885%)^730 ≈ 0.2307745729%
Subtracting from 100%, you get the probability that at least two siblings will meet (100% - 0.230774573%) = 99.769225427%

A: (Part 2) The chance that any of the siblings meet during those 2 years is around 99.7692%

Wednesday, July 18, 2012

GeekDad Puzzle of the Week: Math Trolls

Troll Bridge SignGeekDad Puzzle of the Week: Math Trolls:
Q: Nora is taking a trip to visit her Grandmother in northernmost New York State this week, to bring her some freshly picked berries. On the way there, she has to cross a total of 30 bridges, and under each of the these bridges lives a troll. Each troll is aware of their bridge number, and either demands or gives berries based upon the rarest or most applicable description of their bridge. They demand or give berries according to the following schedule:
  • Trolls under odd numbered bridges demand half of your berries.
  • Trolls under even numbered bridges demand 20 berries.
  • Trolls under prime numbered bridges give you half again the number of berries you are carrying.
  • Trolls under perfect square numbered bridges demand a quarter of your berries.
  • Trolls under perfect cube numbered bridges give you the number of berries you are carrying, doubling your number of berries.
If trolls round up in their demands (i.e., if you have 57 berries at the foot of a bridge best described as odd numbered, you will cross it with 28 berries), what is the minimum number of berries Nora must start with so that she ends up with 1,000 berries when she arrives at her Grandmother’s house?
The solution has already been posted on the GeekDad website. If you want to solve it yourself, read no further. A detailed breakdown of my solution is given in the comments.

Wednesday, July 04, 2012

GeekDad Puzzle of the Week: Poaching Berries

Red Raspberries, photofarmer@FlickrGeekDad Puzzle of the Week: Poaching Berries:
Q: Leif and Kestrel are willing to give GeekDad a 20% cut of berries they poach for turning a blind eye. Imagine that Leif picks five berries per poach and Kestrel picks three berries per poach and that they attempt to poach once every day, with the exception of any day just after they’ve been caught. Now imagine that each time they poach berries, they have a 15% chance of getting caught. How many berries can GeekDad expect to eat each each week, averaged over time?
I'll post my thoughts on the answer after the answer is revealed (generally early next week).

Edit: The following answer was what I submitted to end up winning the puzzle:

Let's assume a few things:
1) Leif and Kestrel start in a state where they haven't ever been caught.
2) Each time they are caught, the berries that day don't count. Also, they must skip the next day until trying again.

There are essentially 3 states that each child could be in. Since the probabilities for each child are the same we can group them together, though in reality the puzzle allows for one child to be caught and the other not. The results work out the same, so let's just simplify it to a pair of children trying to poach 8 berries a day.

The children could be:
1) Caught the day before and therefore have no chance of getting berries that day (must sit out).
2) Caught today (15%, if not caught the day before)
3) Not caught today (85%, if not caught the day before)

Each day, the chance of being caught the day before is just carried forward. So on day 2, the chance is 15% they are sitting out. That leaves 85% chance they are attempting poaching. Of that 85%, there's a 15% chance they are caught (0.85 x 0.15 = 12.75%) and an 85% chance they poach successfully (0.85 x 0.85 = 72.25%).

If you repeat this, the next day (Day 3) they have a 12.75% chance of sitting out and a 87.25% chance of attempting poaching. Day 4, the chance of sitting out is 0.15 x 87.25% = 13.0875% and not sitting out is 86.9125%. Day 5, the chance of sitting out is 0.15 x 86.9125% = 13.036875% and not sitting out is 86.963125%. You can continue this progression and you will see that the chance they are sitting out approaches a value of about 13.043478%. The chance they are caught that day is equivalently about 13.043478%. That leaves a 73.913043% chance they are able to poach 8 berries with an expected return of 5.913043478 berries a day.

That equates to approximately 41.39130435 berries a week. With a 20% "commission" after awhile you will be eating approximately 8.27826087 berries each week.

Note: For a more accurate answer (rather than just a decimal approximation) we can solve this algebraically as follows:

Let p be the chance that you ARE sitting out.
Let q be the chance you are NOT sitting out.

Together these are mutually exclusive and therefore add up to 100% (or mathematically we say 1)
p + q = 1
p = 1 - q

The chance you are NOT sitting out, but CAUGHT is 0.15q
The chance you are NOT sitting out, and SUCCESSFULLY POACHED is 0.85q

We know that eventually the two values p and 0.15q end up being the same, so equate them
p = 0.15q

Substitute in 1-q:
1 - q = 0.15q

Rearrange:
1 = 1.15q
q = 1/1.15

The chance we are caught that day is 0.15q
0.15q = 0.15(1/1.15) = 0.15/1.15 = 15/115 = 3/23
And the chance we poach some berries is 0.85q
0.85q = 0.85(1/1.15) = 0.85/1.15 = 85/115 = 17/23

For the sake of completeness that means you have:
3/23 = chance child is sitting out
3/23 = chance child was caught today
17/23 = chance child was able to poach successfully

Now multiply this last number by 8 berries attempted times 7 days and then times 1/5 (20% commission) to get the expected number of berries poached each week.
Berries per week = 17/23 x 8 x 7 x 1/5

If you reduce that to a fraction you end up with:
952/115 = 8 32/115 berries each week.

A: 8 32/115 berries each week.
8.27826086956521739130434... (underlined portion repeats indefinitely)

Saturday, June 16, 2012

GeekDad Puzzle of the Week: When Are the Odds Even?

Black and white marblesGeekDad Puzzle of the Week: When Are the Odds Even?:
Q: If we have a bag containing equal numbers of black and white marbles, and we pull out one marble, the odds of it being black are even. If we have a bag containing 120 marbles, 85 of which are black, the odds of us pulling out two marbles and them both being black is also even — (85/120)x(84/119) = 0.5 or 50%.

If the largest bag we have can hold 1,000,000 marbles, for how many sets of marbles (i.e., the 120 marbles described above are one set) can we pull two marbles and have a 50% chance of them being the same designated color? Are there any sets of marbles for which we can pull three marbles and have a 50% chance of them being the same designated color? If so, how many?
After the solution is revealed, I'll post the details of my answer.

Edit: GeekDad Puzzle Solution:
In the first case you are essentially looking for integer solutions to:
a(a-1) = 2b(b-1)

There are EIGHT sets under 1 million that will result in even odds when 2 balls are drawn.

4 marbles (3 black) --> 4 x 3 = 2(3 x 2)
21 marbles (15 black) --> 21 x 20 = 2(15 x 14)
120 marbles (85 black) --> 120 x 119 = 2(85 x 84)
697 marbles (493 black) --> 697 x 696 = 2(493 x 492)
4,060 marbles (2,871 black) --> 4,060 x 4,059 = 2(2,871 x 2,870)
23,661 marbles (16,731 black) --> 23,661 x 23,660 = 2(16,731 x 16,730)
137,904 marbles (97,513 black) --> 137,904 x 137,903 = 2(97,513 x 97,512)
803,761 marbles (568,345 black) --> 803,761 x 803,760 = 2(568,345 x 568,344)

Interestingly, the next number in each sequence can be computed as follows:
a(n) = 6a(n-1) - a(n-2) - 2

So for example, the next numbers in the sequence would be:
Total balls: 6 x 803,761 - 137,904 - 2 = 4,684,660 marbles
Black balls: 6 x 568,345 - 97,513 - 2 = 3,312,555 black

Integer sequences: A011900 and A046090

In the second case you are looking for integer solutions to:
a(a-1)(a-2) = 2b(b-1)(b-2)

There is only ONE set under 1 million that will result in even odds when 3 balls are drawn.

6 marbles (5 black) --> 6 x 5 x 4 = 2(5 x 4 x 3)