Problem

NT-B2-M01-P007 A Small Common Divisor

#7 Grade 8 Grade 9 Grade 10 ★★★☆☆ Level 3 of 5

Find all positive integers \(n\) such that \( \gcd(n^2+n+1,2n+1)>1 \).