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 A364683 #6 Aug 02 2023 13:48:40 %S A364683 0,1,0,3,-1,1,2,-1,3,-1,9,3,-1,2,-1,-1,9,3,-1,-1,-1,9,5,-1,-1,-1,9,-1, %T A364683 -1,-1,16,-1,9,9,-1,3,12,-1,-1,-1,18,-1,-1,9,-1,5,-1,-1,4,-1,9,-1,-1, %U A364683 9,-1,-1,-1,-1,-1,-1,-1,16,-1,-1,-1,9,-1,9,5,-1,-1,-1,19,12,-1,-1,-1,-1,33,-1,27 %N A364683 a(n) is the least k such that 1 + 2^k + 3^k is divisible by n, or -1 if there is no such k. %C A364683 If a(n) = -1, then a(m) = -1 for all multiples of n. %H A364683 Robert Israel, <a href="/A364683/b364683.txt">Table of n, a(n) for n = 1..10000</a> %e A364683 a(7) = 2 because 1 + 2^2 + 3^2 = 14 is divisible by 7 while 1 + 2^0 + 3^0 = 3 and 1 + 2^1 + 3^1 = 6 are not. %p A364683 f:= proc(n) local k; %p A364683 for k from 0 to numtheory:-phi(n) + max(padic:-ordp(n,2), padic:-ordp(n,3)) do %p A364683 if 1 + 2&^k + 3&^k mod n = 0 then return k fi %p A364683 od; %p A364683 -1 %p A364683 end proc: %p A364683 map(f, [$1..100]); %Y A364683 Cf. A001550. %K A364683 sign,look %O A364683 1,4 %A A364683 _Robert Israel_, Aug 02 2023