login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

a(n) = n^3 mod 32.
1

%I #18 Dec 18 2023 14:58:30

%S 0,1,8,27,0,29,24,23,0,25,8,19,0,21,24,15,0,17,8,11,0,13,24,7,0,9,8,3,

%T 0,5,24,31,0,1,8,27,0,29,24,23,0,25,8,19,0,21,24,15,0,17,8,11,0,13,24,

%U 7,0,9,8,3,0,5,24,31,0,1,8,27,0,29,24,23,0,25,8,19,0,21,24,15,0,17,8

%N a(n) = n^3 mod 32.

%C Cyclical with period 32. - _Harvey P. Dale_, Sep 29 2013

%H G. C. Greubel, <a href="/A070494/b070494.txt">Table of n, a(n) for n = 0..1000</a>

%H <a href="/index/Rec#order_32">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).

%F a(4*m) = 0. - _G. C. Greubel_, Mar 30 2016

%t PowerMod[Range[0,90],3,32] (* _Harvey P. Dale_, Sep 29 2013 *)

%o (Sage) [power_mod(n,3,32 )for n in range(0, 83)] # _Zerinvary Lajos_, Oct 30 2009

%o (PARI) a(n)=n^3%32 \\ _Charles R Greathouse IV_, Apr 06 2016

%K nonn,easy

%O 0,3

%A _N. J. A. Sloane_, May 12 2002