Math Is Fun Forum

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

You are not logged in.

#26 Re: Computer Math » Project Euler Problems 1-3 » 2024-05-13 16:34:27

Yes it has four prime factors.

I found problem 5 to be the hardest to do on Excel. Not sure problems 7-9 can be done on Excel. 9, maybe.

#27 Re: Help Me ! » Box of Color Marbles » 2024-05-13 13:07:28

Other way around: with replacement means putting the item back in, thereby replacing it, yielding independent events.

Without replacement means not putting the item back in, i.e. not replacing it, yielding dependent events.

#28 Computer Math » Project Euler Problems 7-9 » 2024-05-13 01:37:13

Keep_Relentless
Replies: 11

The first 6 problems could be done with Excel. The next three are:

7. By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10001st prime number? [Without looking it up.]

8. The four adjacent digits in the 1000-digit number that have the greatest product are 9*9*8*9 = 5832.

73167176531330624919225119674426574742355349194934
96983520312774506326239578318016984801869478851843
85861560789112949495459501737958331952853208805511
12540698747158523863050715693290963295227443043557
66896648950445244523161731856403098711121722383113
62229893423380308135336276614282806444486645238749
30358907296290491560440772390713810515859307960866
70172427121883998797908792274921901699720888093776
65727333001053367881220235421809751254540594752243
52584907711670556013604839586446706324415722155397
53697817977846174064955149290862569321978468622482
83972241375657056057490261407972968652414535100474
82166370484403199890008895243450658541227588666881
16427171479924442928230863465674813919123162824586
17866458359124566529476545682848912883142607690042
24219022671055626321111109370544217506941658960408
07198403850962455444362981230987879927244284909188
84580156166097919133875499200524063689912560717606
05886116467109405077541002256983155200055935729725
71636269561882670428252483600823257530420752963450

Find the thirteen adjacent digits in the 1000-digit number that have the greatest product. What is the value of this product?

9. A Pythagorean triplet is a set of three natural numbers, a<b<c, for which, a^2 + b^2 = c^2. For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2. There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product a*b*c.

#29 Re: Computer Math » Project Euler Problems 4-6 » 2024-05-13 01:03:53

I did problem 5 with Excel too

Edit: Problem 4 as well.

#30 Computer Math » Project Euler Problems 4-6 » 2024-05-12 23:30:19

Keep_Relentless
Replies: 5

The first three problems were able to be solved on Excel without any coding. I'm going to keep going until I get stuck. The next three:

4. A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 * 99. Find the largest palindrome made from the product of two 3-digit numbers.

5. 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

6. The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385. The square of the sum of the first ten natural numbers is, (1 + 2 + ... + 10)^2 = 55^2 = 3025. Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 - 385 = 2640. Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.

Problem 6 looked really easy so I solved it first.

By the way the website asks you not to post the answers. I'm just posting the problems here for extra motivation.

#31 Re: Computer Math » Project Euler Problems 1-3 » 2024-05-12 21:11:23

For problem 3,

600851475143 is not divisible by 13 or 29. Looks like Excel has rounding errors.

In fact, seems there are no prime factors below 71.

#32 Re: Computer Math » Project Euler Problems 1-3 » 2024-05-12 20:41:50

I did problem 2 on Excel too, manually. There are only 32 terms of that Fibonacci sequence less than four million.

#33 Re: Computer Math » Project Euler Problems 1-3 » 2024-05-12 20:33:45

I did problem 1 on Excel.

Sum of multiples of 3 less than 1000 + Sum of multiples of 5 less than 1000 - Sum of duplicates

Where I manually subtracted the duplicates.

This problem was OK to do on Excel, because multiples up to 1000 is manageable, but if it were multiples up to 10,000,000 or so, my method would take far too long.
So ideally this question should be answered by programming.

#34 Re: Computer Math » Project Euler Problems 1-3 » 2024-05-12 20:03:40

Yes, I am able to log in to both accounts now. Thank you

#35 Re: Computer Math » Project Euler Problems 1-3 » 2024-05-12 19:41:48

Hey Bob,

I think the intention is to write a simple program that brute-forces the answers. Otherwise it will take too long to evaluate both the problems given and the entire class of similar problems?

I think I am actually happy to use this account. Matilda told me it is not against the rules to have two accounts. Sorry for any inconvenience.

#36 Computer Math » Project Euler Problems 1-3 » 2024-05-12 19:11:33

Keep_Relentless
Replies: 14

These problems might be super common, but I'll post them here because I can. I am pretty much a newbie at computer maths.

1. If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000.

2. Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.

3. The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143?

#37 Re: Exercises » 5 problems » 2024-05-12 18:57:47

Can anyone show how to do Q5??

#38 Re: Help Me ! » Box of Color Marbles » 2024-05-12 18:49:58

Should be 3/6 * 2/5, since there's no replacement, right?

#39 Re: Help Me ! » Guilty and Not Guilty » 2024-05-12 18:47:07

Yes looks correct.

It's a bit under 1/4.

I think you understand how to do these problems smile

#40 Re: Help Me ! » Deck of Cards » 2024-05-12 18:41:31

I get a much smaller number when multiplying 1/13 and 4/51.

#41 Re: Help Me ! » A Quiz With Two Questions » 2024-05-12 02:10:27

Edit: Originally it wasn't specified that the answers were chosen at random.

Original post:
I think it's common knowledge that NYC is not in Egypt and that the deep end of a swimming pool is not the same as the shallow end. So it would be quite unlikely for someone to answer (True) and (True); probably less than 5%.

They might not be independent either.

Looks like the question is made to make you think about these things.

But I would suggest P(A) is probably much lower than 1/2, and P(B) much higher than 1/2.

#42 Re: Help Me ! » Name the Number » 2024-05-12 02:00:02

Anything larger than pi and less than root 10 works.

#43 Re: Help Me ! » Loci and Construction » 2024-05-09 14:18:35

Imagine drawing a line going right from anywhere on AB, until it touches the diagonal. And then from there, another line going down from the diagonal until it touches BC.

These two lines would be equal. Does that help at all? You can also fold the two sections on top of each other, so there's symmetry.

#44 Re: Help Me ! » Square Root {∞} » 2024-05-09 14:09:29

If it's possible to multiply infinity by itself and get infinity, then it should be possible to square root infinity and get infinity. I don't see why not. If you're looking for an answer that is a real number though, it doesn't exist.

#45 Re: Help Me ! » Square Root {-∞} » 2024-05-09 01:37:37

Interesting question. Is it infinity * the imaginary unit, infinity*i?

#46 Re: Help Me ! » Square Root {∞} » 2024-05-09 01:33:52

infinity * infinity = infinity squared = infinity.

#47 Re: Help Me ! » Loci and Construction » 2024-05-09 01:27:53

Nearly there,
you drew the arc for the section less than 14m from D.

Now you need to draw the section that's closer to AB than BC. Is it a diagonal line?

The question is asking for the intersection or overlap between these two sections.

Yes AB just means the line AB, made up of every point on that line.

I suppose B would be on both AB and BC - meaning it's a tie for that point! Lol.

K_R

#48 Re: Help Me ! » Prove 1 = 2 » 2024-05-09 01:03:45

These "proofs" typically rely on a division by zero.

#49 Re: Help Me ! » Infinity + Infinity » 2024-05-09 00:45:06

Hilbert's infinite hotel is a commonly used illustration.

If an infinite hotel were full and you wanted to accommodate more guests, as many as you like, just shift the occupants along as many spaces as needed.

If it were full and you wanted to accommodate an infinite number of new guests, just shift each occupant to a room double their current room number.

So, infinity plus infinity is infinity.

Furthermore, you could do this infinitely many times.

So infinity times infinity is infinity.

And I assume infinity to the power of infinity is infinity?

And so on?

K_R

#50 Re: Exercises » 5 problems » 2024-05-09 00:33:02

Regarding Q5, help is needed on finding roots of quintic equations and what's needed to see the answer, thanks smile

Board footer

Powered by FluxBB