cp's OEIS Frontend

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.

A128158 a(n) = least k such that the remainder when 18^k is divided by k is n.

This page as a plain text file.
%I A128158 #14 Aug 01 2015 05:05:22
%S A128158 17,14,5,7,13,106,11,158,927,314,6767,15,724317787,62,21,20,407,19,
%T A128158 319,38,39,302,150698261,30,1055599,298,129,74
%N A128158 a(n) = least k such that the remainder when 18^k is divided by k is n.
%C A128158 10^15 < a(29) <= 3612834616189533302730621726282897865691021. - _Max Alekseyev_, Apr 14 2012
%H A128158 Robert G. Wilson v, <a href="/A128158/a128158.txt">Table of n, a(n) for n = 1..10000 with -1 for large entries where a(n) has not yet been found</a>
%t A128158 t = Table[0, {10000}]; k = 1; While[k < 3000000000, a = PowerMod[18, k, k]; If[a < 10001 && t[[a]] == 0, t[[a]] = k; Print[{a, k}]]; k++ ]; t (* _Robert G. Wilson v_, Jun 23 2009 *)
%Y A128158 Cf. A036236, A078457, A119678, A119679, A127816, A119715, A119714, A127817, A127818, A127819, A127820, A127821, A128154, A128155, A128156, A128157, A128159, A128160, A128149, A128150.
%K A128158 hard,more,nonn
%O A128158 1,1
%A A128158 _Alexander Adamchuk_, Feb 16 2007
%E A128158 a(13)-a(28) from _Robert G. Wilson v_, Jun 23 2009