Skip to content

extinctsion/lychrel_number_app

Repository files navigation

Lychrel Number Visualizer

A web application built with Next.js that helps visualize and understand Lychrel numbers through an interactive interface.

What are Lychrel Numbers?

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.

Example:

  • 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
    

Features

  • 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

Tech Stack

  • Next.js 14
  • TypeScript
  • Tailwind CSS
  • Shadcn/ui Components

Getting Started

  1. Clone the repository:
git clone https://github.com/yourusername/lychrel_number_app.git
  1. Install dependencies:
cd lychrel_number_app
npm install
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 with your browser to see the result.

License

MIT License

About

A webapp about lychrel numbers written in next.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •