# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a063709 Showing 1-1 of 1 %I A063709 #16 May 09 2023 08:56:28 %S A063709 0,0,0,3,16,5,576,2023,4096,227529,2656000,26301011,443667456, %T A063709 5268921853,294332416,820814907375,19909425135616,225992064764177, %U A063709 5838869363687424,43054524724611979,296380418621440000 %N A063709 Remainder when n^n is divided by n!. %H A063709 Harry J. Smith, Table of n, a(n) for n=0..100 %e A063709 a(7) = 2023 because 7^7 = 2023 (mod 7!). %t A063709 Table[PowerMod[n, n, n! ], {n, 24}] %o A063709 (PARI) for(n=0,22,print(Mod(n^n,n!))) %o A063709 (PARI) { for (n=0, 100, write("b063709.txt", n, " ", n^n % n!) ) } \\ _Harry J. Smith_, Aug 28 2009 %Y A063709 Cf. A000142, A000312. %K A063709 easy,nonn %O A063709 0,4 %A A063709 _Axel Harvey_, Aug 23 2001 %E A063709 Corrected and extended by a number of contributors, Aug 24 2001 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE