OFFSET
0,1
LINKS
Zhuorui He, Table of n, a(n) for n = 0..10000 (terms 0..98 from Alan Klette).
Sean A. Irvine, Java program (github)
FORMULA
a(n) = A096558(n+199670977) = floor((A096557(n+199670977) mod 2^31)/2^16). - Zhuorui He, Aug 22 2025
PROG
(C)
#include <stdio.h>
int main()
{
long next = 1;
int i = 0;
while ( i++ < 33 )
{
next = next * 214013L + 2531011L;
printf( "%d ", (unsigned)( next >> 16) & 0x7FFF );
}
printf("\n");
return 0;
}
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Frank Ellermann, May 20 2003
EXTENSIONS
Corrected by Alan Klette, Jun 09 2019
STATUS
approved
