A web application built with Next.js that helps visualize and understand Lychrel numbers through an interactive interface.
A Lychrel number is a natural number that cannot form a palindrome through the iterative process of reversing its digits and adding the result to the original number. The term "Lychrel" was coined by Wade VanLandingham around 1988.
-
Non-Lychrel number (200):
200 + 002 = 202 (palindrome found in 1 iteration)
-
Suspected Lychrel number (196):
196 + 691 = 887 887 + 788 = 1675 1675 + 5761 = 7436 ...and so on, never forming a palindrome
- Check if a number is a potential Lychrel number
- Visualize the distribution of Lychrel and non-Lychrel numbers
- Interactive dark/light theme toggle
- Responsive design for all devices
- Next.js 14
- TypeScript
- Tailwind CSS
- Shadcn/ui Components
- Clone the repository:
git clone https://github.com/yourusername/lychrel_number_app.git
- Install dependencies:
cd lychrel_number_app
npm install
- Run the development server:
npm run dev
- Open http://localhost:3000 with your browser to see the result.
MIT License