A React Native mobile application that demonstrates Kaprekar’s Constant for 2-digit, 3-digit, and 4-digit numbers.
The app allows users to input a number, apply Kaprekar’s routine step by step, and observe how it converges to the Kaprekar constant.
- Supports 2-digit, 3-digit, and 4-digit numbers
- Step-by-step visualization of Kaprekar’s process
- Input validation (no invalid or identical-digit numbers)
- Clean and simple UI
- Works on Android and iOS
- 2-digit numbers: 9
- 3-digit numbers: 495
- 4-digit numbers: 6174
The app repeatedly:
- Rearranges digits in ascending and descending order
- Subtracts the smaller number from the larger
- Repeats until the Kaprekar constant is reached
- Node.js (>= 16 recommended)
- npm or yarn
- React Native CLI or Expo (depending on your setup)
- Android Studio / Xcode (for emulator or device testing)
- Clone the repository:
git clone https://github.com/manavjain01/kaprekar-constant.git