a(n) is the smallest positive integer k such that 3^n+2 divides 3^(n+k)+2.

A298827

a(n) is the smallest positive integer k such that 3^n+2 divides 3^(n+k)+2.

Terms

    a(0) =4a(1) =5a(2) =28a(3) =41a(4) =84a(5) =336a(6) =990a(7) =193a(8) =1260a(9) =5905a(10) =75918a(11) =10065a(12) =318860a(13) =2391485a(14) =14348908a(15) =20390382a(16) =5031420a(17) =31624326a(18) =5985168a(19) =1743333144a(20) =8569036a(21) =668070480a(22) =547062516a(23) =141214768241a(24) =167874004756a(26) =385131186110a(28) =784347169884a(29) =475536631360

External references