All terms up to n=40000 for the first sequence: 1,6,22,72,114,148,164,260,261,780,1078,1184,1266,2952,4674,21868,33847 and for the second sequence: 1,2,3,11,33,309,665,1461,2323,6789