login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A014850
Numbers k that divide s(k), where s(1)=1, s(j)=3*s(j-1)+j.
0
1, 3, 39, 507, 6591, 12207, 85683, 158691, 255567, 285987, 1028703, 1113879, 2062983, 3322371, 3717831, 3820791, 13373139, 14480427, 26818779, 31089279, 43190823, 48331803, 49670283, 79992471, 89513931, 173850807, 188245551, 321984039, 348644127, 404160627, 561480699, 628313439, 645713679
OFFSET
1,2
EXAMPLE
39 is in the sequence as A000340(39-1) = 3039416364764232180 is divisible by 39. - David A. Corneth, Aug 08 2021
PROG
(PARI) lista(nn) = my(s); for(k=1, nn, s=3*s+k; if(s%k==0, print1(k, ", "))); \\ Jinyuan Wang, Aug 08 2021
(PARI) is(n) = n%2==1 && lift(Mod(3, n)^(n + 1) - Mod(3, n)) == 0 \\ David A. Corneth, Aug 08 2021
CROSSREFS
s(n) = A000340(n-1).
Sequence in context: A063035 A198970 A361539 * A341671 A328809 A327603
KEYWORD
nonn
EXTENSIONS
a(7)-a(16) from Arkadiusz Wesolowski, Jul 03 2011
More terms from David A. Corneth, Aug 08 2021
STATUS
approved