PUZZLE IBM-279
Square roots of unity modulo Carmichael numbers
IBM Research · Ponder This · 2021-07
IBM Ponder This #279 · July 2021
A simple primality test is based on Fermat's little theorem: If
However, the test always fails for Carmichael numbers, composite numbers that satisfy
The smallest Carmichael number is
Your goal: Find a Carmichael number
n
p1, p2, ..., pn
b
Where n is the Carmichael number, p1, p2, ..., pn are all the prime factors of n, and b is the largest non-trivial square root of unity modulo n.
A bonus "*" will be given for finding a solution that is also a primary Carmichael number:
Primary Carmichael numbers are numbers
For example, Ramanujan's taxicab number
- A30 in base 13, (10+3+0=13)
- 4F0 in base 19 (4+15+0=19) Thus it is an example of a primary Carmichael number.
Solution
Best opened after a real attemptTo be added.