15,959,039 members

I'm on google foobar's final level. And derived myself a working mathematical equation but can't code it due to confusion.

Here's the question.

Here's what I derived.

In the solution 'p' and 'q' are partition number of 'w' and 'h' respectively

And You can only use standard library.

**What I have tried:**

I tried coding this many time, But everytime Got myself confused while coding the numerator part.

Here's the question.

Here's what I derived.

In the solution 'p' and 'q' are partition number of 'w' and 'h' respectively

And You can only use standard library.

I tried coding this many time, But everytime Got myself confused while coding the numerator part.

Comments

Richard MacCutchan
9-Jul-17 7:19am

Please put the proper details in your question, show the code you have, and explain what and where the error is.

nk_mason
10-Jul-17 2:37am

whenever I code, I got myself confused in nested loops. Using group theory, Permutations and Combinations, Polya enumerationa and Burnside's lemma... I proved that equation but whenever I code the numerator part of the equation those nested loops confuse me. So no error is there, or simply say that I'm confused a lot.

Richard MacCutchan
10-Jul-17 2:48am

Go to The Python Tutorial — Python 3.4.5 documentation[^] and work through it a few times.

Member 13672432
6-Apr-18 14:43pm

i don't see the code

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject,
20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8
+1 (416) 849-8900