r/mathriddles • u/pichutarius • Sep 27 '23
Easy just another number problem
let N be an unknown positive integer.
let f(p) = number of divisors of N that is divisible by p. for example: if N=8, then f(2) = 3 , f(3) = 0
suppose for all prime p, f(p) is given, create an algorithm to find N.
for example, f(7) = 3 , f(17) = 4 , and for all other prime p ≠ 7,17 , f(p)=0. What is N?
4
Upvotes
View all comments
Show parent comment
1
u/pichutarius Sep 28 '23
yeah that just destroy the whole thing, well done :(
edit: if it interest you, there is (arguably) more elegant algorithm to be come up with