programming question, feel free to answer or ignore but I'ma sleep on it, 

Gah. I don't understand this python question, but that's because I don't know what they mean with the equation in it. Something something recursion but I don't know.

A number, a, is a power of b if it is divisible by b and a/b is a power of b.

Like, I don't understand. It would always return false, because you've asked me to recur infinitely downwards until I hit something that isn't a power of b??

4 is a power of 2 because 4 is divisble by 2 but (4/2)/2 isn't because 1 is not a power of 2?

9 is a power of 3 because 9 is divisible by 3 but then (9/3)/3 isn't because 1 is not a power of 3?

bleh. Gonna sleep on this and see if it makes sense in the morning.

Follow

re: programming question, feel free to answer or ignore but I'ma sleep on it, 

@Mareepy x^0=1 for all x=/=0

re: programming question, feel free to answer or ignore but I'ma sleep on it, 

@Mareepy i don't know if this is helpful i'm also too tired for math

re: programming question, feel free to answer or ignore but I'ma sleep on it, 

@monorail thank for help.

The problem made much more sense today after a night's sleep and reading this

Sign in to participate in the conversation
glaceon.social

A general fediverse instance for people who generally like pokemon at least a little bit. Newly registered users must be manually approved due to an increasing number of spam bots; if you look like a person, your account will be approved as soon as possible.