A161896 Integers n for which k = (9^n - 3 * 3^n - 4n) / (2n * (2n + 1)) is an integer.
5, 11, 23, 29, 41, 53, 83, 89, 113, 131, 173, 179, 191, 233, 239, 251, 281, 293, 359, 419, 431, 443, 491, 509, 593, 641, 653, 659, 683, 719, 743, 761, 809, 911, 953, 1013, 1019, 1031, 1049, 1103, 1223, 1229, 1289, 1409, 1439, 1451, 1481, 1499, 1511, 1541, 1559
Offset: 1
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
Programs
-
Haskell
a161896 n = a161896_list !! (n-1) a161896_list = [x | x <- [1..], (9^x - 3*3^x - 4*x) `mod` (2*x*(2*x + 1)) == 0] -- Reinhard Zumkeller, Jan 12 2014
-
PARI
is(n)=my(m=2*n*(2*n+1),t=Mod(3,m)^n); t^2-3*t==4*n \\ Charles R Greathouse IV, Nov 25 2014
Comments