Skip to content

Conversation

@ArsiyaTasleem90250
Copy link

This PR adds a Java solution to find the smallest repunit (a number consisting of only 1s) that is divisible by a given integer K.

Key features:

  • Efficiently calculates the smallest number made of repeated 1s divisible by K.
  • Handles edge cases where no such repunit exists.
  • Demonstrates the use of modular arithmetic to avoid integer overflow.
  • Can be used as a reference implementation for numeric problems involving divisibility and patterns.

This contribution is part of Hacktoberfest 2025 participation and adds a new problem-solving example to the repository.

@wiz0floyd wiz0floyd closed this Dec 27, 2025
@wiz0floyd wiz0floyd added the spam label Dec 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants