Case #1: 6 Case #2: 21 Case #3: 52 Case #4: 45 Case #5: 27 Case #6: 182 Case #7: 132 Case #8: 57 Case #9: 376249 Case #10: 18829 Case #11: 2997 Case #12: 349892 Case #13: 6999405 Case #14: 599997 Case #15: 34174 Case #16: 496500 Case #17: 967824784 Case #18: 747375 Case #19: 38999259 Case #20: 2999997 Case #21: 58998289 Case #22: 59998230 Case #23: 62997984 Case #24: 27998460 Case #25: 27 Case #26: 25 Case #27: 18 Case #28: 27 Case #29: 135 Case #30: 124 Case #31: 54 Case #32: 145 Case #33: 57155807 Case #34: 332964 Case #35: 37032 Case #36: 468407 Case #37: 658144464 Case #38: 3258717 Case #39: 296292 Case #40: 4937025