You are viewing a single comment's thread. Return to all comments →
I get 100/100 point :)
Solution:
We need to resolve: Ab * x = bA
=> A = {b[10^(n-1) - x]} / (10x - 1)
(I will explain later)
with:
- x = 1 to 9 - n = 2 to m - b = 1 to 9 - length of A is equal to (n-1)
explain:
Ab * x = bA => (10A + b) * x = b * (10^(n-1)) + A => 10x * A + b * x = b * (10^(n-1)) + A => (10x - 1) A = b[ 10^(n-1) - x] => A = {b[10^(n-1) - x]} / (10x - 1)
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #168: Number Rotations
You are viewing a single comment's thread. Return to all comments →
I get 100/100 point :)
Solution:
We need to resolve: Ab * x = bA
=> A = {b[10^(n-1) - x]} / (10x - 1)
(I will explain later)
with:
explain: