# Greetings from The On-Line Encyclopedia of Integer Sequences! https://backiee.wasmer.app/https_oeis_org/ Search: id:a205007 Showing 1-1 of 1 %I A205007 #11 Sep 29 2018 18:41:34 %S A205007 2,1,1,1,1,2,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1, %T A205007 1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1, %U A205007 1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 %N A205007 a(n) = (1/n)*A205006(n), where A205006(n) = s(k)-s(j), with (s(k),s(j)) the least pair of distinct triangular numbers for which n divides their difference. %C A205007 For a guide to related sequences, see A204892. %H A205007 Antti Karttunen, Table of n, a(n) for n = 1..23515 %t A205007 (See the program at A205002.) %o A205007 (PARI) A205007(n) = for(k=2,oo,my(sk=binomial(k+1,2)); for(j=1,k-1,if(!((sk-binomial(j+1,2))%n),return((sk-binomial(j+1,2))/n)))); \\ _Antti Karttunen_, Sep 27 2018 %Y A205007 Cf. A000217, A205002, A205006, A204892. %Y A205007 Cf. A318894 (gives the positions terms larger than one). %K A205007 nonn %O A205007 1,1 %A A205007 _Clark Kimberling_, Jan 21 2012 %E A205007 More terms from _Antti Karttunen_, Sep 27 2018 # Content is available under The OEIS End-User License Agreement: https://backiee.wasmer.app/https_oeis_org/LICENSE