OEIS2BibTeX  Powered by PSYCHEDELIC GEOMETRY Blogspot.
Copy and paste to your "*.bib" archive:

"; //echo "$url2"."
"; $page_url = fopen($url2, "r"); if($page_url) { $OEIS_Text=""; while(!feof($page_url)) { $OEIS_Text .= fgetss($page_url, 1024); } //echo $OEIS_Text."
"."
"; // Search the sequence description. $d1 = strpos($OEIS_Text,", search"); $d2 = strpos($OEIS_Text,"classic"); $OEIS_Description=substr($OEIS_Text,$d1+strlen(", search"),$d2-$d1-strlen("classic")-1); // Search the sequence Author. $a1 = strrpos($OEIS_Text,"Author"); $a2 = strrpos($OEIS_Text,"Retrieved"); $OEIS_Author=substr($OEIS_Text,$a1+strlen("Author"),$a2-$a1-strlen("Retrieved")-1); //Removing Author´s email. $e = strpos($OEIS_Author,"("); $OEIS_Author=substr($OEIS_Author,1,$e-2); echo "@MISC{oeis".$OEIS_Id.",
". "AUTHOR = {".$OEIS_Author."},
". "TITLE = {The {O}n-{L}ine {E}ncyclopedia of {I}nteger {S}equences},
". "HOWPUBLISHED = {\href{".$url2."}{".$OEIS_Id."}},
". "MONTH={},
". "YEAR ={},
". "NOTE = {".$OEIS_Description."}
}"; } } fclose($page_url); ?>