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

%I #10 Mar 05 2024 02:44:59

%S 1,2,10,36,9,3,5,24,8,43,82,25,30,46,64,62,60,68,7,14,70,18,13,4,31,

%T 272,19,12,97,35,161,140,20,86,27,74,131,11,502,234,47,181,386,21,6,

%U 996,52,232,144,32,393,189,199,281,10,490,39,154,83,22,28,577,63,65,88,61,115

%N Least positive integer such that a(n)! starts with n, both written in base 16.

%H Nick Hobson, <a href="/A155894/b155894.txt">Table of n, a(n) for n = 1..4095</a>

%H Nick Hobson, <a href="/A155894/a155894.c.txt">C program</a>.

%o (PARI) A155894(n)={ local( F=1,k=1 ); while( F\1!=n, F*=k++; while( F>=n+1, F/=16 )); k}

%o (C) See Links section.

%Y Cf. A155891, A155892, A155893, A018799, A076219.

%K base,nonn

%O 1,2

%A _M. F. Hasler_, Feb 01 2009