Search⌘ K
AI Features

Sum of k-Mirror Numbers

Explore how to identify k-mirror numbers, which are palindromic in both decimal and a specified base k. Learn to calculate the sum of the smallest such numbers, enhancing your skills in mathematical problem-solving and palindrome detection across number bases.

Statement

A k-mirror number is a positive integer without leading zeros that is a palindrome in both base-1010 and base-k.

Given an integer k representing the base and an integer n, return the sum of the n smallest k-mirror numbers. ...