Math Problem Statement

number n is called k -beautiful if the following conditions are met:

  1. The number n has a sum of digits equal to k

  2. The number n is divisible by k without a remainder.

  3. The notation of the number n begins with k−2 and ends with k−2

Your task is to find the minimum k -beautiful number. Of course, it is more interesting to solve it in general form, but we have simplified the task for you and it only needs to be solved for k=99

Example: For k=13, ans will be 116311. Sum of digits=13, Divisible by 13 and Notation of number begins and ends with 11 i.e.(13-2=11). It can also be shown that this is the minimum number possible. .

Input Format

Constraints

Solve for k=99

Solution

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Number Theory
Divisibility
Digit Sum

Formulas

-

Theorems

-

Suitable Grade Level

Advanced Mathematics