OFFSET
0,1
LINKS
Alan Klette, Table of n, a(n) for n = 0..98
Sean A. Irvine, Java program (github)
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