P520
projecteuler.net

Simbers

ℹ️Published on Saturday, 13th June 2015, 10:00 pm; Solved by 460;
Difficulty rating: 45%

We define a simber to be a positive integer in which any odd digit, if present, occurs an odd number of times, and any even digit, if present, occurs an even number of times.

For example, 141221242 is a 9-digit simber because it has three 1's, four 2's and two 4's.

Let Q(n) be the count of all simbers with at most n digits.

You are given Q(7)=287975 and Q(100)mod1000000123=123864868.

Find (1u39Q(2u))mod1000000123.



Soluzione

Last modified: May 27, 2025. Website built with Franklin.jl and the lovely Julia programming language.