Jump to content
BrainDen.com - Brain Teasers

Leaderboard

Popular Content

Showing content with the highest reputation on 03/15/14 in all areas

  1. An antifirst number is a natural number that has more divisors than any preceding number before it. E.g. 1 has 1 divisor, 2 has 2 divisors, (skip 3 since it only has 2 divisors) 4 has 3 divisors, 6 has 4 divisors, and so on... So the first four numbers are (1,2,4, and 6). Your tasks, find the biggest antifirst number under 1,000,000. Prove or provide a counter example to the following conjecture, all antifirst numbers greater than 6 are abundant or perfect.
    -1 points
  2. The thing I still don't understand is whether or not you can prove that you've got a set of generating functions that will cover all numbers that will converge. That's why I took the different approach of starting at the number 1 and applying the algorithm backwards -- if you can cover all cases that can be reached by working from 1 backwards then you know you've covered every number that converges, so any number not on that list can't converge. I just can't come up with an adequate way to show definitively that I've covered all generating functions of the form (n x 2a + 1) x 2b by finding all values of n using the function sqrt(n x 2a + 1) = next value of n In fact I know I'm missing some numbers that do converge, maybe because the generating function behaves strangely at higher values or something, because my approach didn't pick up that 47, 93, and 185 converge using the list of numbers generated in the previous perl program. (Either that or maybe rounding errors are making my computer miss whether it's dealing with integers or not after taking log base 2.) If you want to make a list of numbers that your functions cover, you could compare it to the list of the numbers from 1 to 200 that appear to diverge: 27, 39, 43, 51, 53, 55, 59, 71, 45, 77, 79, 83, 85, 87, 91, 95, 99, 101, 103, 105, 107, 109, 111, 115, 117, 119, 123, 135, 139, 141, 143, 147, 149, 151, 153, 155, 157, 159, 163, 165, 167, 169, 171, 173, 175, 179, 181, 183, 187, 189, 191, 195, 197, 199 and multiples of powers of two for each of those.
    -1 points
  3. Consider computing the product of two complex numbers (a + bi) and (c + di). By foiling the polynomials as we learned in grade school. We get: a + bi c + di ---------- adi - bd ca + cbi ---------------- (ca - bd) + (ad + cb)i Note that this standard method uses 4 multiplications and 2 additions to compute the product. (The plus sign in between (ca - bd) and (ad + cb)i does not count as an addition. Think of a complex number as simply a 2-tuple.) It is actually possible to compute this complex product using only 3 multiplications and 3 additions. From a logic design perspective, this is preferable since multiplications are more expensive to implement than additions. Can you figure out how to do this?
    -1 points
×
×
  • Create New...