This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A213859 #25 Jan 12 2023 01:38:36 %S A213859 1,2,0,3,4,4,0,2,6,6,4,7,8,2,0,9,16,10,4,2,12,12,16,8,14,20,4,15,16, %T A213859 16,0,2,18,22,16,19,20,2,24,21,16,22,4,38,24,24,16,32,6,2,4,27,34,52, %U A213859 8,2,30,30,4,31,32,2,0,8,16,34,4,2,46,36,16,37,38,17 %N A213859 a(n) = 2^n mod (n+2). %C A213859 Conjectures: %C A213859 1. Indices of zeros: 2^(x+2)-2, x >= 0. %C A213859 2. There are infinitely many n's such that a(n)=n. %C A213859 3. Every integer k >= 0 appears in a(n) at least once. %C A213859 4. Every k >= 0 appears in a(n) infinitely many times. %H A213859 G. C. Greubel, <a href="/A213859/b213859.txt">Table of n, a(n) for n = 0..10000</a> %F A213859 a(n) = 2^n mod (n+2). %F A213859 a(n) = A106262(2*n, n). - _G. C. Greubel_, Jan 11 2023 %t A213859 Table[PowerMod[2, n, n+2], {n, 0, 100}] (* _T. D. Noe_, Jun 26 2012 *) %o A213859 (Python) %o A213859 print([2**n % (n+2) for n in range(222)]) %o A213859 (Magma) [Modexp(2,n,n+2): n in [0..120]]; // _G. C. Greubel_, Jan 11 2023 %o A213859 (SageMath) [power_mod(2,n,n+2) for n in range(121)] # _G. C. Greubel_, Jan 11 2023 %Y A213859 Cf. A015910, A066606, A062173, A106262. %K A213859 nonn,easy %O A213859 0,2 %A A213859 _Alex Ratushnyak_, Jun 22 2012