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.

A155892 Least positive integer such that a(n)! starts with n, both written in base 3.

This page as a plain text file.
%I A155892 #2 Mar 31 2012 13:48:25
%S A155892 1,2,12,5,13,3,19,4,31,18,12,21,5,33,17,13,34,8,38,7,19,92,24,4,11,6,
%T A155892 46,39,31,22,18,77,12,55,32,75,21,52,74,5,15,33,61,122,166,17,47,13,
%U A155892 65,54,49,148,34,71,8,117,107,60,38,51,10,7,111,25,19,92,123,128,29,24,56,99
%N A155892 Least positive integer such that a(n)! starts with n, both written in base 3.
%e A155892 a(4) = 5 since 4 = 11[3] (i.e. written in base 2) and 5! = 11110[3] is the least factorial to have 11 as most significant digits in base 3.
%o A155892 (PARI) A155892(n)={ local( F=1,k=1 ); while( F\1!=n, F*=k++; while( F>=n+1, F/=3 )); k}
%Y A155892 Cf. A155891, A018799, A076219.
%K A155892 base,nonn
%O A155892 1,2
%A A155892 _M. F. Hasler_, Feb 01 2009