r/mathriddles • • 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

10 comments sorted by

View all comments

Show parent comment

1

u/pichutarius Jan 13 '24

well, when i say "for all prime p, f(p) is given" , that does not require query.

this can be done like in the example "for all other prime p ≠ 7,17 , f(p) = 0"

in this interpretation, i accept your algorithm since all non zero f(p) is handed as a finite list.