Cody

# Problem 69. Find the peak 3n+1 sequence value

Solution 2017204

Submitted on 13 Nov 2019 by Weiyang Zhang
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
nmax = 10; pmax = 52; assert(isequal(peakOfPeaks(nmax),pmax))

pmax = 0 pmax = 1 pmax = 2 pmax = 16 pmax = 16 pmax = 16 pmax = 16 pmax = 52 pmax = 52 pmax = 52 pmax = 52

2   Pass
nmax = 30; pmax = 9232; assert(isequal(peakOfPeaks(nmax),pmax))

pmax = 0 pmax = 1 pmax = 2 pmax = 16 pmax = 16 pmax = 16 pmax = 16 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232

3   Pass
nmax = 100; pmax = 9232; assert(isequal(peakOfPeaks(nmax),pmax))

pmax = 0 pmax = 1 pmax = 2 pmax = 16 pmax = 16 pmax = 16 pmax = 16 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232

4   Pass
nmax = 1000; pmax = 250504; assert(isequal(peakOfPeaks(nmax),pmax))

pmax = 0 pmax = 1 pmax = 2 pmax = 16 pmax = 16 pmax = 16 pmax = 16 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 1312...

5   Pass
nmax = 2000; pmax = 1276936; assert(isequal(peakOfPeaks(nmax),pmax))

pmax = 0 pmax = 1 pmax = 2 pmax = 16 pmax = 16 pmax = 16 pmax = 16 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 1312...

6   Pass
nmax = 4500; pmax = 6810136; assert(isequal(peakOfPeaks(nmax),pmax))

pmax = 0 pmax = 1 pmax = 2 pmax = 16 pmax = 16 pmax = 16 pmax = 16 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 1312...

7   Pass
nmax = 8120; pmax = 8153620; assert(isequal(peakOfPeaks(nmax),pmax))

pmax = 0 pmax = 1 pmax = 2 pmax = 16 pmax = 16 pmax = 16 pmax = 16 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 1312...

8   Pass
nmax = 9998; pmax = 27114424; assert(isequal(peakOfPeaks(nmax),pmax))

pmax = 0 pmax = 1 pmax = 2 pmax = 16 pmax = 16 pmax = 16 pmax = 16 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 52 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 160 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 9232 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 13120 pmax = 1312...