Permuted multiples | Project Euler | Problem #52
URL to the problem page: https://projecteuler.net/problem=52 It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order. Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, contain the same digits. #include <iostream> using namespace std ; long long power ( long long a , long long b ) { long long result = 1 ; for ( int i = 0 ; i < b; i++) { result = result * a; } return result; } long long finddigits ( long long a ) { long long counter = 1 ; while (a ...