OFFSET
0,1
COMMENTS
WATCOM C/C++ 10.0b uses this sequence for stdlib.h rand(). MS C 6.0 and gcc 2.6.3 use other (similar) sequences.
REFERENCES
Brian W. Kernighan and Dennis M. Ritchie, The C Programming Language, Second Edition, ANSI C, 1988, Prentice-Hall Internat., ch. 2.7.
Brian W. Kernighan and Dennis M. Ritchie, The C-programming-language [German], 1990, Hanser, p. 45.
LINKS
FORMULA
From David Fifield, May 23 2024: (Start)
a(n) = A096554(n+934703610).
a(n) = floor(A096553(n+2)/65536) mod 32768. (End)
PROG
(C) unsigned long next= 1; int i= 0; while (i++ < 33) next= next * 1103515245 + 12345, printf( "%d ", (unsigned)( next/65536 ) %32768 );
(PARI) x=1; m=2^32; for (n=0, 1000, x=(x*1103515245 + 12345)%m; write("b061364.txt", n, " ", (x\65536)%32768) ) \\ Harry J. Smith, Jul 21 2009
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Frank Ellermann, Jun 11 2001
STATUS
approved