Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A112569
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A112569 Antidiagonal sums of square table A112564 of generalized Flavius Josephus sieves. +0
6
1, 2, 4, 9, 19, 43, 88, 207, 423, 951, 2094, 4511, 9445, 22025, 45172, 93483, 205101, 435515, 882322, 1983637, 3983429, 8659805, 17928712, 36742421, 76317521, 163095069, 331056988, 693360803, 1444266731 (list; graph; listen)
OFFSET

1,2

PROGRAM

(PARI)

(C++) #include <iostream> #include <limits.h> using namespace std ; int A112564(const unsigned long long n, const unsigned long long k) { unsigned long long A=k ; unsigned long long B=0 ; unsigned long long C=0 ; if( n==0 || k == 0) return 1; else { while(A != B) { C++ ; if ( C % n == 0) C++ ; B=A ; A= A*(C+1)/C ; if ( A > ULLONG_MAX/(C+1) ) exit(0) ; } return 1+A ; } } unsigned long long A112569(const int d) { unsigned long long resul =0 ; for(int k=0 ; k <=d ; k++) resul += A112564(d-k, k) ; return resul ; } int main(int argc, char *argv[]) { for(int n=0; n < 40 ; n++) cout << A112569(n) << endl ; } - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Sep 26 2006

CROSSREFS

Cf. A112564, A000960.

Adjacent sequences: A112566 A112567 A112568 this_sequence A112570 A112571 A112572

Sequence in context: A001384 A089941 A127681 this_sequence A101463 A026776 A117160

KEYWORD

more,nonn

AUTHOR

Paul D. Hanna (pauldhanna(AT)juno.com), Oct 14 2005

EXTENSIONS

More terms from R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Sep 26 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 9 14:06 EDT 2008. Contains 144831 sequences.


AT&T Labs Research