You are given a positive integer n, which is initially present on a board.
Every day, for
For each integer x currently on the board, find all integers i such that i n and x % i == 1.
Add every such integer i to the board.
Return the count of distinct integers present on the board after
Note: Once a number is added to the board, it remains on the board indefinitely.
Constraints:
n
You are given a positive integer n, which is initially present on a board.
Every day, for
For each integer x currently on the board, find all integers i such that i n and x % i == 1.
Add every such integer i to the board.
Return the count of distinct integers present on the board after
Note: Once a number is added to the board, it remains on the board indefinitely.
Constraints:
n