Posts Tagged ‘ arithmetics ’

Even odds

January 22, 2012
By
Even odds

This evening, I found a nice probabilistic puzzle on http://www.futilitycloset.com/ "A bag contains 16 billiard balls, some white and some black. You draw two balls at the same time. It is equally likely that the two will be the same color as diff...

Read more »

Le Monde puzzle [#752]

December 8, 2011
By
Le Monde puzzle [#752]

After a loooong break, here is one Le Monde mathematical puzzle I had time to look at, prior to going to Dauphine for a Saturday morning class (in replacement of my R class this week)! The question is as follows: A set of numbers {1,…,N} is such that multiples of 4 are tagged C and

Read more »

Le Monde puzzle [#738]

September 1, 2011
By
Le Monde puzzle [#738]

The Friday puzzle in Le Monde this week is about “friendly perfect squares”, namely perfect squares x2>10 and y2>10 with the same number of digits and such that, when drifting all digits of x2 by the same value a (modulo 10), one recovers y2. For instance, 121 is “friend” with 676. Here is my R

Read more »

Candy branching process

May 5, 2010
By
Candy branching process

The mathematical puzzle in the latest weekend edition of Le Monde is as follows: Two kids are given three boxes of chocolates with a total of 32 pieces. Rather than sharing evenly, they play the following game: Each in turn, they pick one of the three boxes, empty its contents in a jar and pick

Read more »

schoolmath

March 6, 2010
By
schoolmath

In connection with the Le Monde puzzle of last week, I was looking for an R function that would give me the prime factor decomposition of any integer. Such a function exists within the package schoolmath, developped by Joerg Schlarmann and Josef Wienand. It is called prime.factor and it returns the prime factors of any

Read more »