A232398 Number of ways to write n = p + (2^k - k) + (2^m - m) with p prime and 0 < k <= m.
0, 0, 0, 1, 2, 2, 2, 2, 4, 2, 2, 2, 3, 2, 4, 3, 4, 2, 4, 4, 4, 2, 3, 3, 3, 4, 4, 1, 3, 4, 5, 3, 5, 4, 5, 4, 4, 1, 4, 3, 5, 3, 5, 4, 5, 4, 5, 3, 3, 4, 5, 2, 3, 3, 4, 4, 5, 3, 3, 4, 6, 4, 5, 3, 7, 5, 5, 3, 4, 6, 6, 4, 7, 4, 6, 6, 7, 3, 3, 4, 5, 5, 6, 2, 6, 5, 5, 4, 5, 5, 5, 5, 5, 1, 4, 6, 4, 2, 5, 6
Offset: 1
Keywords
Examples
a(11) = 2 since 11 = 5 + (2 - 1) + (2^3 - 3) = 7 + (2^2 - 2) + (2^2 - 2) with 5 and 7 prime. a(28) = 1 since 28 = 11 + (2^3 - 3) + (2^4 - 4) with 11 prime. a(94) = 1 since 94 = 31 + (2^3 - 3) + (2^6 - 6) with 31 prime.
Links
- Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
- R. Crocker, On the sum of a prime and two powers of two, Pacific J. Math. 36 (1971), 103-107.
- Zhi-Wei Sun, On a^n + b*n modulo m, preprint, arXiv:1312.1166 [math.NT], 2013-2014.
Comments