(-2, 6, 64, 8.0)
(61, 7, 3142742836021, 1772778.2816869684)
(69, 15, 3825924196601651794829001549, 61854055619673.414)
(-26, 13, -2481152873203736576, 'expected a nonnegative input, got -2.4811528732037366e+18')
(30, 18, 387420489000000000000000000, 19683000000000.0)
(-41, 6, 4750104241, 68921.0)
(-85, 11, -1673432436896142578125, 'expected a nonnegative input, got -1.6734324368961425e+21')
(47, 4, 4879681, 2209.0)
(88, 16, 12933699143209908517669873647616, 3596345248055296.0)
(-38, 17, -718325266223569592115396608, 'expected a nonnegative input, got -7.183252662235696e+26')
(31, 10, 819628286980801, 28629151.0)
(3, 9, 19683, 140.29611541307906)
(84, 10, 17490122876598091776, 4182119424.0)
(-3, 18, 387420489, 19683.0)
(37, 19, 624931990990842127748277129373, 790526401197861.4)
(63, 1, 63, 7.937253933193772)
(94, 7, 64847759419264, 8052810.653384568)
(69, 16, 263988769565513973843201106881, 513798374428641.0)
(72, 15, 7244150201408990671659859968, 85112573697480.16)
(-58, 5, -656356768, 'expected a nonnegative input, got -656356768.0')
(54, 9, 3904305912313344, 62484445.362932876)
(-89, 16, 15496731425178936435099327730561, 3936588805702081.0)
(53, 1, 53, 7.280109889280518)
(-4, 6, 4096, 64.0)
(81, 15, 42391158275216203514294433201, 205891132094649.0)
(-72, 7, -10030613004288, 'expected a nonnegative input, got -10030613004288.0')
(-65, 17, -6599743590836592050933837890625, 'expected a nonnegative input, got -6.599743590836592e+30')
(-69, 7, -7446353252589, 'expected a nonnegative input, got -7446353252589.0')
(-38, 6, 3010936384, 54872.0)
(-10, 6, 1000000, 1000.0)
(99, 0, 1, 1.0)
(90, 5, 5904900000, 76843.34714209162)
(-12, 19, -319479999370622926848, 'expected a nonnegative input, got -3.194799993706229e+20')
(52, 5, 380204032, 19498.821297709255)
(-85, 19, -4559944833472277161543903350830078125, 'expected a nonnegative input, got -4.559944833472277e+36')
(35, 18, 6211904899255558013916015625, 78815638671875.0)
(87, 14, 1423211802583135884046255089, 37725479487783.0)
(-13, 13, -302875106592253, 'expected a nonnegative input, got -302875106592253.0')
(91, 6, 567869252041, 753571.0)
(18, 1, 18, 4.242640687119285)
(-11, 6, 1771561, 1331.0)
(-72, 8, 722204136308736, 26873856.0)
(73, 1, 73, 8.54400374531753)
(75, 18, 5637710113660432398319244384765625, 7.508468627929688e+16)
(-32, 15, -37778931862957161709568, 'expected a nonnegative input, got -3.777893186295716e+22')
(11, 12, 3138428376721, 1771561.0)
(-83, 14, 736365263311636486061599129, 27136050989627.0)
(17, 14, 168377826559400929, 410338673.0)
(80, 15, 35184372088832000000000000000, 187574977245985.56)
(67, 14, 36732225162896895721934329, 6060711605323.0)
(81, 8, 1853020188851841, 43046721.0)
(63, 0, 1, 1.0)
(-73, 8, 806460091894081, 28398241.0)
(80, 18, 18014398509481984000000000000000000, 1.34217728e+17)
(59, 17, 1271991467017507741703714391419, 1127825991462117.2)
(-39, 19, -1699133621328831977374894383159, 'expected a nonnegative input, got -1.699133621328832e+30')
(-99, 2, 9801, 99.0)
(-75, 3, -421875, 'expected a nonnegative input, got -421875.0')
(87, 1, 87, 9.327379053088816)
(73, 6, 151334226289, 389017.0)
(-90, 13, -25418658283290000000000000, 'expected a nonnegative input, got -2.541865828329e+25')
(-43, 19, -10861771343660416614908294685907, 'expected a nonnegative input, got -1.0861771343660416e+31')
(18, 13, 20822964865671168, 144301645.40181503)
(-79, 10, 9468276082626847201, 3077056399.0)
(86, 0, 1, 1.0)
(5, 6, 15625, 125.0)
(-63, 5, -992436543, 'expected a nonnegative input, got -992436543.0')
(74, 6, 164206490176, 405224.0)
(-98, 7, -86812553324672, 'expected a nonnegative input, got -86812553324672.0')
(-58, 0, 1, 1.0)
(-56, 12, 951166013805414055936, 30840979456.0)
(74, 5, 2219006624, 47106.33316232543)
(-15, 9, -38443359375, 'expected a nonnegative input, got -38443359375.0')
(-32, 18, 1237940039285380274899124224, 35184372088832.0)
(42, 11, 717368321110468608, 846975986.1474637)
(25, 9, 3814697265625, 1953125.0)
(-11, 0, 1, 1.0)
(-12, 10, 61917364224, 248832.0)
(60, 0, 1, 1.0)
(-16, 5, -1048576, 'expected a nonnegative input, got -1048576.0')
(97, 16, 61425365346268570446197767595521, 7837433594376961.0)
(-14, 8, 1475789056, 38416.0)
(89, 15, 174120577810999285787632895849, 417277578850097.44)
(39, 17, 1117116121846700839825703079, 33423287119113.535)
(-27, 0, 1, 1.0)
(-1, 7, -1, 'expected a nonnegative input, got -1.0')
(-51, 0, 1, 1.0)
(-80, 14, 439804651110400000000000000, 20971520000000.0)
(83, 15, 61118316854865828343112727707, 247221190141269.7)
(-56, 4, 9834496, 3136.0)
(-100, 11, -10000000000000000000000, 'expected a nonnegative input, got -1e+22')
(-92, 2, 8464, 92.0)
(81, 4, 43046721, 6561.0)
(-19, 9, -322687697779, 'expected a nonnegative input, got -322687697779.0')
(-4, 17, -17179869184, 'expected a nonnegative input, got -17179869184.0')
(40, 10, 10485760000000000, 102400000.0)
(71, 10, 3255243551009881201, 1804229351.0)
